pgsql: Assert(IsTransactionState()) in RelationIdGetRelation().

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Assert(IsTransactionState()) in RelationIdGetRelation().
Date: 2014-02-06 16:28:23
Message-ID: E1WBRoN-0001k3-Nw@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Assert(IsTransactionState()) in RelationIdGetRelation().

Commit 42c80c696e9c8323841180029cc62741c21bd356 added an
Assert(IsTransactionState()) in SearchCatCache(), to catch
any code that thought it could do a catcache lookup outside
transactions. Extend the same idea to relcache lookups.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/ddfc9cb054abed4d08cc2709c9b2197dab96f449

Modified Files
--------------
src/backend/utils/cache/relcache.c | 3 +++
1 file changed, 3 insertions(+)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2014-02-06 17:13:25 pgsql: Alphabeticize list in OBJS definition in utils/adt Makefile.
Previous Message Andres Freund 2014-02-06 10:29:32 Re: pgsql: Introduce replication slots.