postgresql/src
Tom Lane c22dea8900 Improve memory management code to avoid inefficient behavior when a context
has a small maxBlockSize: the maximum request size that we will treat as a
"chunk" needs to be limited to fit in maxBlockSize.  Otherwise we will round
up the request size to the next power of 2, wasting space, which is a bit
pointless if we aren't going to make the blocks big enough to fit additional
stuff in them.  The example motivating this is local buffer management, which
makes repeated allocations of 8K (one BLCKSZ buffer) in TopMemoryContext,
which has maxBlockSize = 8K because for the most part allocations there are
small.  This leads to each local buffer actually eating 16K of space, which
adds up when there are thousands of them.  I intend to change localbuf.c to
aggregate its requests, which will prevent this particular misbehavior, but
it seems likely that similar scenarios could arise elsewhere, so fixing the
core problem seems wise as well.
2006-12-27 22:30:48 +00:00
..
backend Improve memory management code to avoid inefficient behavior when a context 2006-12-27 22:30:48 +00:00
bin Print combining characters (those reported as having zero width by 2006-12-27 19:45:36 +00:00
include Fix failure due to accessing an already-freed tuple descriptor in a plan 2006-12-26 21:37:20 +00:00
interfaces Interpret a dbName param to PQsetdbLogin as a conninfo string if it contains an = sign. Tom Lane and Andrew Dunstan. 2006-12-19 01:53:36 +00:00
makefiles Add $(CFLAGS) to the simplified build rule for .so libraries on Darwin. 2006-11-28 05:45:43 +00:00
pl Code review for XML patch. Instill a bit of sanity in the location of 2006-12-24 00:29:20 +00:00
port Patch of Win32 Encoding problem for server messages using 2006-12-04 22:23:40 +00:00
template Make --with-ldap build on Unixware, per Olivier Prenant. 2006-12-14 21:49:54 +00:00
test Code review for XML patch. Instill a bit of sanity in the location of 2006-12-24 00:29:20 +00:00
timezone Put JST back into the default set of timezone abbreviations; 2006-12-15 16:54:43 +00:00
tools Restructure operator classes to allow improved handling of cross-data-type 2006-12-23 00:43:13 +00:00
tutorial Restructure operator classes to allow improved handling of cross-data-type 2006-12-23 00:43:13 +00:00
bcc32.mak Fix bcc32.mak to create and remove pg_config_os.h properly. Apparently 2006-10-06 18:53:53 +00:00
DEVELOPERS Testing commit stuff 2006-07-10 15:50:02 +00:00
Makefile Remove dllinit.c; it was only needed for long-obsolete Cygwin versions, 2006-06-22 23:50:35 +00:00
Makefile.global.in On Windows, we know the backend stack size limit because we have to 2006-10-08 17:15:34 +00:00
Makefile.shlib Fix shared library creation to work properly on AIX. Albe Laurenz 2006-09-19 15:36:08 +00:00
nls-global.mk When merging PO files, take into consideration translations in other PO 2006-04-05 13:40:15 +00:00
win32.mak Fix win32.mak for config cleanup. 2006-08-08 22:44:05 +00:00