mirror of
https://github.com/postgres/postgres.git
synced 2025-11-12 05:01:15 +03:00
Unbreak unlogged tables.
I broke this in commit 5da79169d3, which
was obviously insufficiently well tested. Add some regression tests
in the hope of making future slip-ups more likely to be noticed.
This commit is contained in:
@@ -506,9 +506,10 @@ RangeVarAdjustRelationPersistence(RangeVar *newRelation, Oid nspid)
|
||||
errmsg("cannot create relations in temporary schemas of other sessions")));
|
||||
break;
|
||||
default:
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_TABLE_DEFINITION),
|
||||
errmsg("only temporary relations may be created in temporary schemas")));
|
||||
if (isAnyTempNamespace(nspid))
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_TABLE_DEFINITION),
|
||||
errmsg("only temporary relations may be created in temporary schemas")));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user