Re: BUG #2051: CREATE TEMP TABLE AS SELECT doesn't play nice with ON COMMIT DROP - Mailing list pgsql-bugs

From Jaime Casanova
Subject Re: BUG #2051: CREATE TEMP TABLE AS SELECT doesn't play nice with ON COMMIT DROP
Date
Msg-id c2d9e70e0511171226r46a4ca44p6d71b5cd0a34d31a@mail.gmail.com
Whole thread Raw
In response to BUG #2051: CREATE TEMP TABLE AS SELECT doesn't play nice with ON COMMIT DROP  ("David Fetter" <david@fetter.org>)
Responses Re: BUG #2051: CREATE TEMP TABLE AS SELECT doesn't play nice with ON COMMIT DROP
List pgsql-bugs
On 11/17/05, David Fetter <david@fetter.org> wrote:
>
> The following bug has been logged online:
>
> Bug reference:      2051
> Logged by:          David Fetter
> Email address:      david@fetter.org
> PostgreSQL version: 8.0x
> Operating system:   Linux
> Description:        CREATE TEMP TABLE AS SELECT doesn't play nice with ON
> COMMIT DROP
> Details:
>
> CREATE TEMP TABLE foo
> AS SELECT a,b,c
> FROM bar
> ON COMMIT DROP;
>
> causes a syntax error.  So does
>
> CREATE TEMP TABLE foo
> ON COMMIT DROP
> AS SELECT a,b,c
> FROM bar
> ;
>

That is because there isn't an ON COMMIT clause for CREATE TABLE AS

see compatibility section in:
http://www.postgresql.org/docs/8.1/static/sql-createtableas.html

--
regards,
Jaime Casanova
(DBA: DataBase Aniquilator ;)

pgsql-bugs by date:

Previous
From: "David Fetter"
Date:
Subject: BUG #2051: CREATE TEMP TABLE AS SELECT doesn't play nice with ON COMMIT DROP
Next
From: David Fetter
Date:
Subject: Re: BUG #2051: CREATE TEMP TABLE AS SELECT doesn't play nice with ON COMMIT DROP