You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Fix bugs in relpersistence handling during table creation.
Unlike the relistemp field which it replaced, relpersistence must beset correctly quite early during the table creation process, as werely on it quite early on for a number of purposes, including securitychecks. Normally, this is set based on whether the user enters CREATETABLE, CREATE UNLOGGED TABLE, or CREATE TEMPORARY TABLE, but arelation may also be made implicitly temporary by creating it inpg_temp. This patch fixes the handling of that case, and alsodisables creation of unlogged tables in temporary tablespace (suchtable indeed skip WAL-logging, but we reject an explicitspecification) and creation of relations in the temporary schemas ofother sessions (which is not very sensible, and didn't work rightanyway).Report by Amit Khandekar.