Re: TRUNCATE TABLE with IDENTITY

From: Simon Riggs <simon(at)2ndquadrant(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: TRUNCATE TABLE with IDENTITY
Date: 2008-03-25 16:02:25
Message-ID: 1206460945.4285.955.camel@ebony.site
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

On Tue, 2008-03-25 at 11:48 -0400, Tom Lane wrote:
> Simon Riggs <simon(at)2ndquadrant(dot)com> writes:
> > SQL200n specifies a new qualifier on a TRUNCATE command
> > TRUNCATE TABLE foo
> > [ CONTINUE IDENTITY | RESTART IDENTITY ]
>
> > CONTINUE IDENTITY is the default and does nothing, like now.
>
> > RESTART IDENTITY will reset the SERIAL sequences back to the original
> > start value.
>
> > Seems like a % project for the TODO list
>
> Seems like copying syntax from a *draft* standard is a bit premature,
> especially when the amount of functionality added is nil.

It's at the final yes-or-no vote stage. Seems unlikely to be "no" to me,
and it would be good to be seen to be proactive on standards support.

The added functionality in this case isn't nil.

--
Simon Riggs
2ndQuadrant http://www.2ndQuadrant.com

PostgreSQL UK 2008 Conference: http://www.postgresql.org.uk

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Steve Crawford 2008-03-25 16:08:40 Re: TRUNCATE TABLE with IDENTITY
Previous Message Simon Riggs 2008-03-25 15:57:59 Re: FETCH FIRST

Browse pgsql-patches by date

  From Date Subject
Next Message Steve Crawford 2008-03-25 16:08:40 Re: TRUNCATE TABLE with IDENTITY
Previous Message Tom Lane 2008-03-25 15:48:48 Re: TRUNCATE TABLE with IDENTITY