From 61aca818c486dbe000ce94c77cb1dd1f379baf67 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 3 Aug 2000 19:19:38 +0000 Subject: Modify heap_open()/heap_openr() API per pghackers discussion of 11 July. These two routines will now ALWAYS elog() on failure, whether you ask for a lock or not. If you really want to get a NULL return on failure, call the new routines heap_open_nofail()/heap_openr_nofail(). By my count there are only about three places that actually want that behavior. There were rather more than three places that were missing the check they needed to make under the old convention :-(. --- src/backend/access/transam/transam.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/backend/access/transam/transam.c') diff --git a/src/backend/access/transam/transam.c b/src/backend/access/transam/transam.c index acca4a901a2..52a3906ba69 100644 --- a/src/backend/access/transam/transam.c +++ b/src/backend/access/transam/transam.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/transam/transam.c,v 1.34 2000/04/12 17:14:52 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/transam/transam.c,v 1.35 2000/08/03 19:18:55 tgl Exp $ * * NOTES * This file contains the high level access-method interface to the @@ -408,9 +408,7 @@ InitializeTransactionLog(void) * ---------------- */ logRelation = heap_openr(LogRelationName, NoLock); - Assert(logRelation != NULL); VariableRelation = heap_openr(VariableRelationName, NoLock); - Assert(VariableRelation != NULL); /* ---------------- * XXX TransactionLogUpdate requires that LogRelation -- cgit v1.2.3