postgres/contrib/dict_xsyn
Tom Lane 3fbfd40b37 Fix bogus code in contrib/ tsearch dictionary examples.
Both dict_int and dict_xsyn were blithely assuming that whatever memory
palloc gives back will be pre-zeroed.  This would typically work for
just about long enough to run their regression tests, and no longer :-(.

The pre-9.0 code in dict_xsyn was even lamer than that, as it would
happily give back a pointer to the result of palloc(0), encouraging
its caller to access off the end of memory.  Again, this would just
barely fail to fail as long as memory contained nothing but zeroes.

Per a report from Rodrigo Hjort that code based on these examples
didn't work reliably.
2011-11-03 19:17:59 -04:00
..
expected Add matchorig, matchsynonyms, and keepsynonyms options to contrib/dict_xsyn. 2009-08-05 18:06:49 +00:00
sql Add matchorig, matchsynonyms, and keepsynonyms options to contrib/dict_xsyn. 2009-08-05 18:06:49 +00:00
.gitignore Some more gitignore cleanups: cover contrib and PL regression test outputs. 2010-09-22 17:22:53 -04:00
Makefile Remove README files now migrated to SGML docs. 2007-12-02 21:15:38 +00:00
dict_xsyn.c Fix bogus code in contrib/ tsearch dictionary examples. 2011-11-03 19:17:59 -04:00
dict_xsyn.sql.in Add CVS version labels to all install/uninstall scripts. 2007-11-13 04:24:29 +00:00
uninstall_dict_xsyn.sql Add CVS version labels to all install/uninstall scripts. 2007-11-13 04:24:29 +00:00
xsyn_sample.rules