summaryrefslogtreecommitdiff
path: root/src/backend/access/common/heaptuple.c
AgeCommit message (Collapse)Author
1999-06-12Reversed out Massimo patch.Bruce Momjian
1999-06-12I don't like last minute patches before the final freeze, but I believe thatBruce Momjian
this one could be useful for people experiencing out-of-memory crashes while executing queries which retrieve or use a very large number of tuples. The problem happens when storage is allocated for functions results used in a large query, for example: select upper(name) from big_table; select big_table.array[1] from big_table; select count(upper(name)) from big_table; This patch is a dirty hack that fixes the out-of-memory problem for the most common cases, like the above ones. It is not the final solution for the problem but it can work for some people, so I'm posting it. The patch should be safe because all changes are under #ifdef. Furthermore the feature can be enabled or disabled at runtime by the `free_tuple_memory' options in the pg_options file. The option is disabled by default and must be explicitly enabled at runtime to have any effect. To enable the patch add the follwing line to Makefile.custom: CUSTOM_COPT += -DFREE_TUPLE_MEMORY To enable the option at runtime add the following line to pg_option: free_tuple_memory=1 Massimo
1999-05-25pgindent run over code.Bruce Momjian
1999-03-14cleanupBruce Momjian
1999-02-13Change my-function-name-- to my_function_name, and optimizer renames.Bruce Momjian
1999-02-03Cleanup of source files where 'return' or 'var =' is alone on a line.Bruce Momjian
1999-01-24Tighten coding of inner loops in nocachegetattr ...Tom Lane
seems to have improved speed of routine by 5% or so ...
1998-11-27New HeapTuple structure/interface.Vadim B. Mikheev
1998-10-08Make functions static or ifdef NOT_USED. Prevent pg_version creation.Bruce Momjian
1998-09-07Alignment cleanup so no more massive switch statements for alignment,Bruce Momjian
just two macros.
1998-09-04offsetof cleanup.Bruce Momjian
1998-09-04t_bits alignment fix from Tatsuo IshiiBruce Momjian
1998-09-01OK, folks, here is the pgindent output.Bruce Momjian
1998-09-01Renaming cleanup, no pgindent yet.Bruce Momjian
1998-08-19heap_fetch requires buffer pointer, must be released; heap_getnextBruce Momjian
no longer returns buffer pointer, can be gotten from scan; descriptor; bootstrap can create multi-key indexes; pg_procname index now is multi-key index; oidint2, oidint4, oidname are gone (must be removed from regression tests); use System Cache rather than sequential scan in many places; heap_modifytuple no longer takes buffer parameter; remove unused buffer parameter in a few other functions; oid8 is not index-able; remove some use of single-character variable names; cleanup Buffer variables usage and scan descriptor looping; cleaned up allocation and freeing of tuples; 18k lines of diff;
1998-06-15Remove un-needed braces around single statements.Bruce Momjian
1998-02-26pgindent run before 6.3 release, with Thomas' requested changes.Bruce Momjian
1998-02-11Goodbye register keyword. Compiler knows better.Bruce Momjian
1998-02-06Update now that attcacheoff initial value is -1 always.Bruce Momjian
1998-02-05 Symptom:Marc G. Fournier
select from a table with attrs (a int, b char(20)) crashed in bpcharout() (palloc of -1 bytes). But a table with attrs (a int, b varchar(20)) worked. From: Jan Wieck <jwieck@debis.com>
1998-02-05char() cleanup and more cacheoff improvements.Bruce Momjian
1998-02-04Cleanup getattr code. Make CHAR() use attcacheoff.Bruce Momjian
1998-01-31Inline fastgetattr and others so data access does not use functionBruce Momjian
calls.
1998-01-07Goodbye ABORT. Hello ERROR for all errors.Bruce Momjian
1998-01-05Change elog(WARN) to elog(ERROR) and elog(ABORT).Bruce Momjian
1997-11-02Good Bye, Time Travel!Vadim B. Mikheev
1997-09-24Coerce type of NULL pointer return to suppress gcc compiler warnings.Thomas G. Lockhart
1997-09-18Inline memset() as MemSet().Bruce Momjian
1997-09-12heapattr functions now return a Datum, not char *.Bruce Momjian
1997-09-08Used modified version of indent that understands over 100 typedefs.Bruce Momjian
1997-09-08Another PGINDENT run that changes variable indenting and case label ↵Bruce Momjian
indenting. Also static variable indenting.
1997-09-07Massive commit to run PGINDENT on all *.c and *.h files.Bruce Momjian
1997-08-26Inlined heap_getattr().Bruce Momjian
1997-08-24Major patch to speed up backend startup after profiling analysis.Bruce Momjian
1997-08-19Make functions static where possible, enclose unused functions in #ifdef ↵Bruce Momjian
NOT_USED.
1996-12-09Add comments describing interface to heap_getattr().Bryan Henderson
1996-12-04Change portname "sparc" to "sunos4" and change some portname dependencies toBryan Henderson
feature dependencies. Thanks Kurt J. Lidl.
1996-11-10All external function definitions now have prototypes that are checked.Bruce Momjian
1996-11-05Re-add -I../.. for fmgr.hMarc G. Fournier
Change #include "" to #include <> Remove a few unused #includes Make sure it compiles with -Wall -Werror
1996-11-05Clean up a few of the #include filesMarc G. Fournier
1996-11-03More include file cleanupsMarc G. Fournier
1996-11-01More intelligent #include cleanups, as pointed out by Bryan...Marc G. Fournier
Compiled with -Wall -Werror
1996-11-01Okay, so I was going backwards on my include cleanup...Marc G. Fournier
Pointed out by Bryan (in a subtle way *grin*)
1996-10-31Added misc include filesMarc G. Fournier
1996-10-21Cosmetic changes to ordering of #include filesMarc G. Fournier
1996-10-20Other then:Marc G. Fournier
indextuple.c:159: warning: `bp' might be used uninitialized in this function this directory passes -Wall -Werror under FreeBSD
1996-10-20First pass at fixing my own mistakesMarc G. Fournier
Mainly...fix up the includes I removed, as well as prototypes Pointed out by D'Arcy
1996-10-19There...that pretty much cleans up redundant/unused #includes inMarc G. Fournier
access/common...how many more directories to go? :)
1996-10-18All #include's removed from *.h files, so cleaning up the .c #includes...Marc G. Fournier
First file of, what...1000's?
1996-09-19A few changes to cleanup the code.Marc G. Fournier
- Added the header access/heapam.h. - Changed all instances of "length" to "data_length" to quiet the compiler. - initialized a few variables. The compiler couldn't see that the code guaranteed that these would be initialized before being dereferenced. If anyone wants to check my work follow the usage of these variables and make sure that this true and wasn't actually a bug in the original code. - added a missing break statement to a default case. This was a benign error but bad style. - layed out heap_sysattrlen differently. I think this way makes the structure of the code crystal clear. There should be no actual difference in the actual behaviour of the code. Submitted by: darcy@druid.druid.com (D'Arcy J.M. Cain)