postgresql/contrib/tablefunc
Tom Lane aaff0a559f Clean up a couple of problems in crosstab_hash's use of a hash table.
The original coding leaked memory (at least 8K per crosstab_hash call)
because it allowed the hash table to be allocated as a child of
TopMemoryContext and then never freed it.  Fix that by putting the
hash table under per_query_ctx, instead.  Also get rid of use
of a static variable to point to the hash table.  Aside from being
ugly, that would actively do the wrong thing in the case of re-entrant
calls to crosstab_hash, which are at least theoretically possible
since it was expecting the static variable to stay valid across
a SPI_execute call.
2007-12-07 16:44:58 +00:00
..
data Have crosstab variants treat NULL rowid as a category in its own right, 2007-11-10 05:00:41 +00:00
expected Fix a few contrib regression test scripts that hadn't gotten the word 2007-11-13 06:29:04 +00:00
sql Fix a few contrib regression test scripts that hadn't gotten the word 2007-11-13 06:29:04 +00:00
Makefile Remove references to READMEs from /contrib Makefiles. 2007-11-10 23:59:52 +00:00
tablefunc.c Clean up a couple of problems in crosstab_hash's use of a hash table. 2007-12-07 16:44:58 +00:00
tablefunc.h Update CVS HEAD for 2007 copyright. Back branches are typically not 2007-01-05 22:20:05 +00:00
tablefunc.sql.in Add CVS version labels to all install/uninstall scripts. 2007-11-13 04:24:29 +00:00
uninstall_tablefunc.sql Add CVS version labels to all install/uninstall scripts. 2007-11-13 04:24:29 +00:00