[GENERAL] DROP [TEMP] TABLE syntax, as reason why not? - Mailing list pgsql-general

From David G. Johnston
Subject [GENERAL] DROP [TEMP] TABLE syntax, as reason why not?
Date
Msg-id CAKFQuwZGCBAiid5kjR=mxCnFvM+fwByWHYue8tDhLT7rEyevcg@mail.gmail.com
Whole thread Raw
Responses Re: [GENERAL] DROP [TEMP] TABLE syntax, as reason why not?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Hey all,

I'm wondering if there is anything technical preventing someone from making:

DROP TEMP TABLE tablename;

work.  Implementation wise the command would fail if a temporary table of the given name doesn't exist.  Today, if a temporary table exists it will be dropped, but if tablename is not schema-qualified and a table with the same names exists in the search path it would be dropped.

Plus its symmetrical with CREATE [TEMP] TABLE.

David J.

pgsql-general by date:

Previous
From: Stephen Frost
Date:
Subject: Re: [GENERAL] PG and database encryption
Next
From: Rob Sargent
Date:
Subject: [GENERAL] jdbc driver vis Release 10