- May 21, 2011
-
-
Heikki Linnakangas authored
avoids the overhead of one function call when calling MemoryContextReset(), and it seems like the isReset optimization would be applicable to any new memory context we might invent in the future anyway. This buys back the overhead I just added in previous patch to always call MemoryContextReset() in ExecScan, even when there's no quals or projections.
-
- Jan 01, 2011
-
-
Bruce Momjian authored
-
- Sep 20, 2010
-
-
Magnus Hagander authored
-
- Jan 02, 2010
-
-
Bruce Momjian authored
-
- Jul 16, 2009
-
-
Peter Eisentraut authored
This alters various incidental uses of C++ key words to use other similar identifiers, so that a C++ compiler won't choke outright. You still (probably) need extern "C" { }; around the inclusion of backend headers. based on a patch by Kurt Harriman <harriman@acm.org> Also add a script cpluspluscheck to check for C++ compatibility in the future. As of right now, this passes without error for me.
-
- Jan 01, 2009
-
-
Bruce Momjian authored
-
- Jan 01, 2008
-
-
Bruce Momjian authored
-
- Aug 07, 2007
-
-
Neil Conway authored
child memory contexts is indented two spaces to the right of its parent context. This should make it easier to deduce the memory context hierarchy from the output of MemoryContextStats().
-
- Jan 05, 2007
-
-
Bruce Momjian authored
back-stamped for this.
-
- Mar 05, 2006
-
-
Bruce Momjian authored
-
- Dec 31, 2004
-
-
PostgreSQL Daemon authored
Tag appropriate files for rc3 Also performed an initial run through of upgrading our Copyright date to extend to 2005 ... first run here was very simple ... change everything where: grep 1996-2004 && the word 'Copyright' ... scanned through the generated list with 'less' first, and after, to make sure that I only picked up the right entries ...
-
- Sep 16, 2004
-
-
Tom Lane authored
subtransactions. Trivial subxacts (such as a plpgsql exception block containing no database access) now demonstrably leak zero bytes.
-
- Aug 29, 2004
-
-
Bruce Momjian authored
-
- Nov 29, 2003
-
-
PostgreSQL Daemon authored
make sure the $Id tags are converted to $PostgreSQL as well ...
-
- Aug 04, 2003
-
-
Bruce Momjian authored
-
- Aug 12, 2002
-
-
Tom Lane authored
to make a reasonable attempt at accounting for palloc overhead, not just the requested size of each memory chunk. Since in many scenarios this will make for a significant reduction in the amount of space acquired, partially compensate by doubling the default value of SORT_MEM to 1Mb. Per discussion in pgsql-general around 9-Jun-2002..
-
- Jun 20, 2002
-
-
Bruce Momjian authored
-
- Nov 05, 2001
-
-
Bruce Momjian authored
initdb/regression tests pass.
-
- Oct 25, 2001
-
-
Bruce Momjian authored
tests pass.
-
- Mar 22, 2001
-
-
Bruce Momjian authored
-
- Jan 24, 2001
-
-
Bruce Momjian authored
-
- Dec 01, 2000
-
-
Tom Lane authored
not-very-good handling of mid-size allocation requests. Do everything via either the "small" case (chunk size rounded up to power of 2) or the "large" case (pass it straight off to malloc()). Increase the number of freelists a little to set the breakpoint between these behaviors at 8K.
-
- Jul 11, 2000
-
-
Bruce Momjian authored
in-chunk leaks, overwrite-next-chunk leaks and overwrite block-freeptr leaks. A in-chunk leak --- if something overwrite space after wanted (via palloc() size, but it is still inside chunk. For example x = palloc(12); /* create 16b chunk */ memset(x, '#', 13); this leak is in the current source total invisible, because chunk is 16b and leak is in the "align space". For this feature I add data_size to StandardChunk, and all memory which go from AllocSetAlloc() is marked as 0x7F. The MemoryContextCheck() is compiled '#ifdef USE_ASSERT_CHECKING'. I add this checking to 'tcop/postgres.c' and is active after each backend query, but it is probably not sufficient, because some MemoryContext exist only during memory processing --- will good if someone who known where it is needful (Tom:-) add it for others contexts; A problem in the current source is that we have still some malloc() allocation that is not needful and this allocation is total invisible for all context routines. For example Dllist in backend (pretty dirty it is in catcache where values in Dllist are palloc-ed, but list is malloc-ed). --- and BTW. this Dllist design stand in the way for query cache :-) Tom, if you agree I start replace some mallocs. BTW. --- Tom, have you idea for across transaction presistent allocation for SQL functions? (like regex - now it is via malloc) I almost forget. I add one if() to AllocSetAlloc(), for 'size' that are greater than ALLOC_BIGCHUNK_LIMIT is not needful check AllocSetFreeIndex(), because 'fidx' is always 'ALLOCSET_NUM_FREELISTS - 1'. It a little brisk up allocation for very large chunks. Right? Karel
-
- Jun 28, 2000
-
-
Tom Lane authored
for details). It doesn't really do that much yet, since there are no short-term memory contexts in the executor, but the infrastructure is in place and long-term contexts are handled reasonably. A few long- standing bugs have been fixed, such as 'VACUUM; anything' in a single query string crashing. Also, out-of-memory is now considered a recoverable ERROR, not FATAL. Eliminate a large amount of crufty, now-dead code in and around memory management. Fix problem with holding off SIGTRAP, SIGSEGV, etc in postmaster and backend startup.
-
- Jan 26, 2000
-
-
Bruce Momjian authored
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc to all files copyright Regents of Berkeley. Man, that's a lot of files.
-
- Jul 16, 1999
-
-
Bruce Momjian authored
-
Bruce Momjian authored
-
- May 26, 1999
-
-
Bruce Momjian authored
-
- May 25, 1999
-
-
Bruce Momjian authored
-
- Mar 08, 1999
-
-
Tom Lane authored
-
- Feb 14, 1999
-
-
Bruce Momjian authored
-
- Feb 06, 1999
-
-
Jan Wieck authored
Jan
-
- Sep 01, 1998
-
-
Bruce Momjian authored
-
- Sep 08, 1997
-
-
Bruce Momjian authored
-
Bruce Momjian authored
Another PGINDENT run that changes variable indenting and case label indenting. Also static variable indenting.
-
- Sep 07, 1997
-
-
Bruce Momjian authored
-
- Nov 04, 1996
-
-
Marc G. Fournier authored
-
- Nov 03, 1996
-
-
Marc G. Fournier authored
-
- Oct 19, 1996
-
-
Marc G. Fournier authored
files
-
- Aug 28, 1996
-
-
Marc G. Fournier authored
- centralizing to simplify the -I's required to compile
-