Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitddfc9cb

Browse files
committed
Assert(IsTransactionState()) in RelationIdGetRelation().
Commit42c80c6 added anAssert(IsTransactionState()) in SearchCatCache(), to catchany code that thought it could do a catcache lookup outsidetransactions. Extend the same idea to relcache lookups.
1 parentf31005e commitddfc9cb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/backend/utils/cache/relcache.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1578,6 +1578,9 @@ RelationIdGetRelation(Oid relationId)
15781578
{
15791579
Relationrd;
15801580

1581+
/* Make sure we're in an xact, even if this ends up being a cache hit */
1582+
Assert(IsTransactionState());
1583+
15811584
/*
15821585
* first try to find reldesc in the cache
15831586
*/

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp