diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-06-29 21:08:25 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-06-29 21:08:25 +0000 |
commit | af5ced9cfdb1aefd5e64af405d7e582c99a55106 (patch) | |
tree | 0134c96dae92bd3000cc399a4a76c65cdca4ad01 /src/backend/access/transam/xlogutils.c | |
parent | 0eab92c0e674815d3b33868c14886845b68d7cfd (diff) | |
download | postgresql-af5ced9cfdb1aefd5e64af405d7e582c99a55106.tar.gz postgresql-af5ced9cfdb1aefd5e64af405d7e582c99a55106.zip |
Further work on connecting the free space map (which is still just a
stub) into the rest of the system. Adopt a cleaner approach to preventing
deadlock in concurrent heap_updates: allow RelationGetBufferForTuple to
select any page of the rel, and put the onus on it to lock both buffers
in a consistent order. Remove no-longer-needed isExtend hack from
API of ReleaseAndReadBuffer.
Diffstat (limited to 'src/backend/access/transam/xlogutils.c')
-rw-r--r-- | src/backend/access/transam/xlogutils.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/access/transam/xlogutils.c b/src/backend/access/transam/xlogutils.c index a3f440ca5f9..39bd86d8a7f 100644 --- a/src/backend/access/transam/xlogutils.c +++ b/src/backend/access/transam/xlogutils.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Header: /cvsroot/pgsql/src/backend/access/transam/xlogutils.c,v 1.15 2001/03/22 03:59:18 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/transam/xlogutils.c,v 1.16 2001/06/29 21:08:24 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -171,6 +171,7 @@ XLogOpenLogRelation(void) sprintf(RelationGetPhysicalRelationName(logRelation), "pg_log"); logRelation->rd_node.tblNode = InvalidOid; logRelation->rd_node.relNode = RelOid_pg_log; + logRelation->rd_targblock = InvalidBlockNumber; logRelation->rd_fd = -1; logRelation->rd_fd = smgropen(DEFAULT_SMGR, logRelation, false); if (logRelation->rd_fd < 0) @@ -384,6 +385,7 @@ XLogOpenRelation(bool redo, RmgrId rmid, RelFileNode rnode) hentry->rdesc = res; + res->reldata.rd_targblock = InvalidBlockNumber; res->reldata.rd_fd = -1; res->reldata.rd_fd = smgropen(DEFAULT_SMGR, &(res->reldata), true /* allow failure */ ); |