postgresql/contrib/dict_xsyn
Tom Lane e3e3087d87 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:48 -04:00
..
expected Convert contrib modules to use the extension facility. 2011-02-13 22:54:49 -05:00
sql Convert contrib modules to use the extension facility. 2011-02-13 22:54:49 -05:00
.gitignore Support "make check" in contrib 2011-04-25 22:27:11 +03:00
dict_xsyn--1.0.sql Throw a useful error message if an extension script file is fed to psql. 2011-10-12 15:45:03 -04:00
dict_xsyn--unpackaged--1.0.sql Throw a useful error message if an extension script file is fed to psql. 2011-10-12 15:45:03 -04:00
dict_xsyn.c Fix bogus code in contrib/ tsearch dictionary examples. 2011-11-03 19:17:48 -04:00
dict_xsyn.control Convert contrib modules to use the extension facility. 2011-02-13 22:54:49 -05:00
Makefile Convert contrib modules to use the extension facility. 2011-02-13 22:54:49 -05:00
xsyn_sample.rules Add sample text search dictionary templates and parsers, to replace the 2007-10-15 21:36:50 +00:00