Re: create temp table and on commit in 7.3.3

From: Antony Paul <antonypaul24(at)gmail(dot)com>
To: Michael Fuhr <mike(at)fuhr(dot)org>
Cc: Neil Conway <neilc(at)samurai(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: create temp table and on commit in 7.3.3
Date: 2005-02-09 07:26:57
Message-ID: 2989532e05020823262deac894@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I learned that there is an on commit clause by looking at the
Compaitiblity section of the 7.3.3 docs and I was confused whether it
is supporting this or not

rgds
Antony Paul

On Wed, 9 Feb 2005 00:19:41 -0700, Michael Fuhr <mike(at)fuhr(dot)org> wrote:
> On Wed, Feb 09, 2005 at 06:00:52PM +1100, Neil Conway wrote:
> > On Wed, 2005-02-09 at 10:48 +0530, Antony Paul wrote:
> > > Hi all,
> > > This is giving error in 7.3.3.
> > >
> > > CREATE TEMP TABLE temptest3(col int PRIMARY KEY) ON COMMIT DELETE ROWS;
> > > ERROR: parser: parse error at or near "ON" at character 51
> > >
> > > Is this supported.
> >
> > No. Looking at the manual would have made it pretty obvious this was
> > added in 7.4
>
> The 7.3 and 7.2 documentation for CREATE TABLE both mention ON COMMIT:
>
> http://www.postgresql.org/docs/7.3/static/sql-createtable.html#SQL-CREATETABLE-COMPATIBILITY
> http://www.postgresql.org/docs/7.2/static/sql-createtable.html#SQL-CREATETABLE-COMPATIBILITY
>
> Should those versions describe ON COMMIT if they don't support it?
>
> --
> Michael Fuhr
> http://www.fuhr.org/~mfuhr/
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tino Wildenhain 2005-02-09 07:34:40 Re: Postgresql and Macintosh
Previous Message Michael Fuhr 2005-02-09 07:19:41 Re: create temp table and on commit in 7.3.3