TRUNCATE TABLE with IDENTITY

From: Simon Riggs <simon(at)2ndquadrant(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: TRUNCATE TABLE with IDENTITY
Date: 2008-03-25 14:44:58
Message-ID: 1206456298.4285.924.camel@ebony.site
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

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

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

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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2008-03-25 14:45:03 FETCH FIRST
Previous Message Kenneth Marshall 2008-03-25 13:15:44 Re: [GSoC] (Is it OK to choose items without % mark in theToDoList) && (is it an acceptable idea to build index on Flash Disk)

Browse pgsql-patches by date

  From Date Subject
Next Message Alvaro Herrera 2008-03-25 14:47:24 Re: postgresql in FreeBSD jails: proposal
Previous Message Alvaro Herrera 2008-03-25 14:15:19 Re: Re: int8/float8/time/timestamp[tz]/float4 passed by value, was Re: Fix HAVE_LONG[_LONG]_INT_64 to really define to 1