Re: [PATCHES] TRUNCATE TABLE with IDENTITY - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: [PATCHES] TRUNCATE TABLE with IDENTITY
Date
Msg-id 1211014690.18922.136.camel@ebony.site
Whole thread Raw
In response to Re: [PATCHES] TRUNCATE TABLE with IDENTITY  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [PATCHES] TRUNCATE TABLE with IDENTITY
List pgsql-hackers
On Fri, 2008-05-16 at 21:50 -0400, Tom Lane wrote:
> Neil Conway <neilc@samurai.com> writes:
> > Ugh. The fact that the RESTART IDENTITY part of TRUNCATE is
> > non-transactional is a pretty unsightly wort.
>
> Actually, I agree.  Shall we just revert that feature?  The ALTER
> SEQUENCE part of this patch is clean and useful, but I'm less than
> enamored of the TRUNCATE part.

Perhaps, but we should also take into account that TRUNCATE is not and
never will be MVCC compliant, so its not something you'd expect to run
except as a maintenance action. If we do keep it, I would suggest that
we add a WARNING so that the effects are clearly recorded.

--
 Simon Riggs           www.2ndQuadrant.com
 PostgreSQL Training, Services and Support


pgsql-hackers by date:

Previous
From: "Marko Kreen"
Date:
Subject: Re: missing $PostgreSQL:$
Next
From: Andrew Dunstan
Date:
Subject: windows builds hanging on regression checks