aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/common/heapvalid.c
Commit message (Collapse)AuthorAge
* +#include <access/xact.h>Vadim B. Mikheev1997-09-22
|
* Inline frequently called functions.Bruce Momjian1997-09-18
|
* heapattr functions now return a Datum, not char *.Bruce Momjian1997-09-12
|
* Another PGINDENT run that changes variable indenting and case label ↵Bruce Momjian1997-09-08
| | | | indenting. Also static variable indenting.
* Massive commit to run PGINDENT on all *.c and *.h files.Bruce Momjian1997-09-07
|
* TupleUpdatedByCurXactAndCmd () changed due toVadim B. Mikheev1997-08-29
| | | | | | Fix very old bug which made tuples changed/inserted by a commnd visible to command itself (so we had multiple update of updated tuples, etc).
* Inlined heap_getattr().Bruce Momjian1997-08-26
|
* Major patch to speed up backend startup after profiling analysis.Bruce Momjian1997-08-24
|
* From: Dan McGuirk <mcguirk@indirect.com>Marc G. Fournier1997-03-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reply-To: hackers@hub.org, Dan McGuirk <mcguirk@indirect.com> To: hackers@hub.org Subject: [HACKERS] tmin writeback optimization I was doing some profiling of the backend, and noticed that during a certain benchmark I was running somewhere between 30% and 75% of the backend's CPU time was being spent in calls to TransactionIdDidCommit() from HeapTupleSatisfiesNow() or HeapTupleSatisfiesItself() to determine that changed rows' transactions had in fact been committed even though the rows' tmin values had not yet been set. When a query looks at a given row, it needs to figure out whether the transaction that changed the row has been committed and hence it should pay attention to the row, or whether on the other hand the transaction is still in progress or has been aborted and hence the row should be ignored. If a tmin value is set, it is known definitively that the row's transaction has been committed. However, if tmin is not set, the transaction referred to in xmin must be looked up in pg_log, and this is what the backend was spending a lot of time doing during my benchmark. So, implementing a method suggested by Vadim, I created the following patch that, the first time a query finds a committed row whose tmin value is not set, sets it, and marks the buffer where the row is stored as dirty. (It works for tmax, too.) This doesn't result in the boost in real time performance I was hoping for, however it does decrease backend CPU usage by up to two-thirds in certain situations, so it could be rather beneficial in high-concurrency settings.
* All external function definitions now have prototypes that are checked.Bruce Momjian1996-11-10
|
* Re-add -I../.. for fmgr.hMarc G. Fournier1996-11-05
| | | | | | | | Change #include "" to #include <> Remove a few unused #includes Make sure it compiles with -Wall -Werror
* More include file cleanupsMarc G. Fournier1996-11-03
|
* More intelligent #include cleanups, as pointed out by Bryan...Marc G. Fournier1996-11-01
| | | | Compiled with -Wall -Werror
* Added misc include filesMarc G. Fournier1996-10-31
|
* Fixes:Marc G. Fournier1996-10-30
| | | | | | | | | | | | | | | | | I found another bug in btree index. Looking at the code it seems that NULL keys are never used to build or scan a btree index (see the explain commands in the example). However this is not the case when a null key is retrieved in an outer loop of a join select and used in an index scan of an inner loop. This bug causes at least three kinds of problems: 1) the backend crashes when it tries to compare a text string with a null. 2) it is not possible to find tuples with null keys in a join. 3) null is considered equal to 0 when the datum is passed by value, see the last query. Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
* Cosmetic changes to ordering of #include filesMarc G. Fournier1996-10-21
|
* Other then:Marc G. Fournier1996-10-20
| | | | | | indextuple.c:159: warning: `bp' might be used uninitialized in this function this directory passes -Wall -Werror under FreeBSD
* First pass at fixing my own mistakesMarc G. Fournier1996-10-20
| | | | | | Mainly...fix up the includes I removed, as well as prototypes Pointed out by D'Arcy
* There...that pretty much cleans up redundant/unused #includes inMarc G. Fournier1996-10-19
| | | | access/common...how many more directories to go? :)
* another one with #include file clean'd upMarc G. Fournier1996-10-19
|
* Postgres95 1.01 Distribution - Virgin SourcesPG95-1_01Marc G. Fournier1996-07-09