postgresql/src/backend/utils
Kevin Grittner 25c5392330 Improve performance in freeing memory contexts
The single linked list of memory contexts could result in O(N^2)
performance to free a set of contexts if they were not freed in
reverse order of creation.  In many cases the reverse order was
used, but there were some significant exceptions that caused real-
world performance problems.  Rather than requiring all callers to
care about the order in which contexts were freed, and hunting down
and changing all existing cases where the wrong order was used, we
add one pointer per memory context so that the implementation
details are not so visible.

Jan Wieck
2015-12-08 17:32:49 -06:00
..
adt Make gincostestimate() cope with hypothetical GIN indexes. 2015-12-01 16:24:34 -05:00
cache Avoid caching expression state trees for domain constraints across queries. 2015-11-29 18:18:42 -05:00
error Coordinate log_line_prefix options 'm' and 'n' to share a timeval. 2015-09-07 15:40:49 -07:00
fmgr pgindent run for 9.5 2015-05-23 21:35:49 -04:00
hash Remove volatile qualifiers from dynahash.c, shmem.c, and sinvaladt.c 2015-10-16 14:14:15 -04:00
init Perform an immediate shutdown if the postmaster.pid file is removed. 2015-10-06 17:15:52 -04:00
mb Avoid doing encoding conversions by double-conversion via MULE_INTERNAL. 2015-11-28 13:42:27 -05:00
misc Message improvements 2015-11-16 21:39:23 -05:00
mmgr Improve performance in freeing memory contexts 2015-12-08 17:32:49 -06:00
resowner Update copyright for 2015 2015-01-06 11:43:47 -05:00
sort Improve comments about abbreviation abort. 2015-11-03 14:11:49 -05:00
time Fix failure to consider failure cases in GetComboCommandId(). 2015-11-26 13:23:02 -05:00
.gitignore Avoid maintaining three separate copies of the error codes list. 2011-02-03 22:32:49 -05:00
errcodes.txt Redesign tablesample method API, and do extensive code review. 2015-07-25 14:39:00 -04:00
Gen_dummy_probes.sed Update copyright for 2015 2015-01-06 11:43:47 -05:00
Gen_fmgrtab.pl Allow forcing nullness of columns during bootstrap. 2015-02-21 22:31:54 +01:00
generate-errcodes.pl Update copyright for 2015 2015-01-06 11:43:47 -05:00
Makefile Make handling of errcodes.h more consistent with other generated headers. 2011-02-04 09:29:10 -05:00
probes.d Update copyright for 2015 2015-01-06 11:43:47 -05:00