Skip to content

Commit 815bd16

Browse files
author
hackorum
committed
Apply 001-patch-v01-Fix-other-sessions-temp-tables-access.patch
1 parent b597835 commit 815bd16

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/backend/access/common/relation.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ relation_open(Oid relationId, LOCKMODE lockmode)
6161
if (!RelationIsValid(r))
6262
elog(ERROR, "could not open relation with OID %u", relationId);
6363

64+
if (RELATION_IS_OTHER_TEMP(r))
65+
ereport(ERROR,
66+
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
67+
errmsg("cannot access temporary tables of other sessions")));
68+
6469
/*
6570
* If we didn't get the lock ourselves, assert that caller holds one,
6671
* except in bootstrap mode where no locks are used.

0 commit comments

Comments
 (0)