mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
pgindent run for 9.0
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/access/index/genam.c,v 1.80 2010/02/07 20:48:09 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/access/index/genam.c,v 1.81 2010/02/26 02:00:33 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
* many of the old access method routines have been turned into
|
||||
@@ -94,13 +94,13 @@ RelationGetIndexScan(Relation indexRelation,
|
||||
|
||||
/*
|
||||
* During recovery we ignore killed tuples and don't bother to kill them
|
||||
* either. We do this because the xmin on the primary node could easily
|
||||
* be later than the xmin on the standby node, so that what the primary
|
||||
* either. We do this because the xmin on the primary node could easily be
|
||||
* later than the xmin on the standby node, so that what the primary
|
||||
* thinks is killed is supposed to be visible on standby. So for correct
|
||||
* MVCC for queries during recovery we must ignore these hints and check
|
||||
* all tuples. Do *not* set ignore_killed_tuples to true when running
|
||||
* in a transaction that was started during recovery.
|
||||
* xactStartedInRecovery should not be altered by index AMs.
|
||||
* all tuples. Do *not* set ignore_killed_tuples to true when running in a
|
||||
* transaction that was started during recovery. xactStartedInRecovery
|
||||
* should not be altered by index AMs.
|
||||
*/
|
||||
scan->kill_prior_tuple = false;
|
||||
scan->xactStartedInRecovery = TransactionStartedDuringRecovery();
|
||||
@@ -170,24 +170,24 @@ BuildIndexValueDescription(Relation indexRelation,
|
||||
|
||||
for (i = 0; i < natts; i++)
|
||||
{
|
||||
char *val;
|
||||
char *val;
|
||||
|
||||
if (isnull[i])
|
||||
val = "null";
|
||||
else
|
||||
{
|
||||
Oid foutoid;
|
||||
bool typisvarlena;
|
||||
Oid foutoid;
|
||||
bool typisvarlena;
|
||||
|
||||
/*
|
||||
* The provided data is not necessarily of the type stored in
|
||||
* the index; rather it is of the index opclass's input type.
|
||||
* So look at rd_opcintype not the index tupdesc.
|
||||
* The provided data is not necessarily of the type stored in the
|
||||
* index; rather it is of the index opclass's input type. So look
|
||||
* at rd_opcintype not the index tupdesc.
|
||||
*
|
||||
* Note: this is a bit shaky for opclasses that have pseudotype
|
||||
* input types such as ANYARRAY or RECORD. Currently, the
|
||||
* typoutput functions associated with the pseudotypes will
|
||||
* work okay, but we might have to try harder in future.
|
||||
* input types such as ANYARRAY or RECORD. Currently, the
|
||||
* typoutput functions associated with the pseudotypes will work
|
||||
* okay, but we might have to try harder in future.
|
||||
*/
|
||||
getTypeOutputInfo(indexRelation->rd_opcintype[i],
|
||||
&foutoid, &typisvarlena);
|
||||
|
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/access/index/indexam.c,v 1.117 2010/01/02 16:57:35 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/access/index/indexam.c,v 1.118 2010/02/26 02:00:34 momjian Exp $
|
||||
*
|
||||
* INTERFACE ROUTINES
|
||||
* index_open - open an index relation by relation OID
|
||||
@@ -455,9 +455,9 @@ index_getnext(IndexScanDesc scan, ScanDirection direction)
|
||||
|
||||
/*
|
||||
* If we scanned a whole HOT chain and found only dead tuples,
|
||||
* tell index AM to kill its entry for that TID. We do not do
|
||||
* this when in recovery because it may violate MVCC to do so.
|
||||
* see comments in RelationGetIndexScan().
|
||||
* tell index AM to kill its entry for that TID. We do not do this
|
||||
* when in recovery because it may violate MVCC to do so. see
|
||||
* comments in RelationGetIndexScan().
|
||||
*/
|
||||
if (!scan->xactStartedInRecovery)
|
||||
scan->kill_prior_tuple = scan->xs_hot_dead;
|
||||
|
Reference in New Issue
Block a user