We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c166454 commit 6def564Copy full SHA for 6def564
src/backend/access/common/relation.c
@@ -60,6 +60,11 @@ relation_open(Oid relationId, LOCKMODE lockmode)
60
if (!RelationIsValid(r))
61
elog(ERROR, "could not open relation with OID %u", relationId);
62
63
+ if (RELATION_IS_OTHER_TEMP(r))
64
+ ereport(ERROR,
65
+ (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
66
+ errmsg("cannot access temporary tables of other sessions")));
67
+
68
/*
69
* If we didn't get the lock ourselves, assert that caller holds one,
70
* except in bootstrap mode where no locks are used.
0 commit comments