From:
Decibel! <decibel(at)decibel(dot)org>
To:
Zoltan Boszormenyi <zb(at)cybertec(dot)at>
Cc:
Simon Riggs <simon(at)2ndquadrant(dot)com>,
Steve Crawford <scrawford(at)pinpointresearch(dot)com>,
pgsql-hackers(at)postgresql(dot)org
Subject:
Re: TRUNCATE TABLE with IDENTITY
Date:
2008-04-02 22:53:10
Message-ID:
207EDE13-F000-4090-8FC6-77560736B60D@decibel.org (view raw or flat )
Thread:
2008-03-25 14:44:58 from Simon Riggs <simon(at)2ndquadrant(dot)com>
2008-03-25 15:48:48 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-03-25 16:02:25 from Simon Riggs <simon(at)2ndquadrant(dot)com>
2008-03-25 16:08:40 from Steve Crawford <scrawford(at)pinpointresearch(dot)com>
2008-03-25 16:18:50 from Simon Riggs <simon(at)2ndquadrant(dot)com>
2008-03-25 16:40:49 from Zoltan Boszormenyi <zb(at)cybertec(dot)at>
2008-03-25 16:42:33 from Zoltan Boszormenyi <zb(at)cybertec(dot)at>
2008-03-25 16:43:36 from Bruce Momjian <bruce(at)momjian(dot)us>
2008-04-02 22:53:10 from Decibel! <decibel(at)decibel(dot)org>
2008-04-03 05:52:25 from Zoltan Boszormenyi <zb(at)cybertec(dot)at>
2008-04-07 18:26:52 from Decibel! <decibel(at)decibel(dot)org>
2008-04-07 19:37:40 from Zoltan Boszormenyi <zb(at)cybertec(dot)at>
2008-04-08 09:09:39 from Zoltan Boszormenyi <zb(at)cybertec(dot)at>
2008-04-21 20:42:30 from Zoltan Boszormenyi <zb(at)cybertec(dot)at>
2008-04-22 15:19:11 from Zoltan Boszormenyi <zb(at)cybertec(dot)at>
2008-04-22 16:01:02 from Alvaro Herrera <alvherre(at)commandprompt(dot)com>
2008-05-16 23:41:15 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-05-17 00:15:37 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-05-17 01:35:52 from Neil Conway <neilc(at)samurai(dot)com>
2008-05-17 01:50:01 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-05-17 08:58:10 from Simon Riggs <simon(at)2ndquadrant(dot)com>
2008-05-17 16:04:55 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-05-17 16:23:58 from Simon Riggs <simon(at)2ndquadrant(dot)com>
2008-06-08 00:30:50 from Alvaro Herrera <alvherre(at)commandprompt(dot)com>
2008-06-08 16:26:06 from Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
2008-07-01 18:09:28 from Bruce Momjian <bruce(at)momjian(dot)us>
2008-03-25 16:45:45 from Gregory Stark <stark(at)enterprisedb(dot)com>
Lists:
pgsql-hackers pgsql-patches
On Mar 25, 2008, at 11:40 AM, Zoltan Boszormenyi wrote:
> All of them? PostgreSQL allow multiple SERIALs to be present,
> the standard allows only one IDENTITY column in a table.
> And what about this case below?
>
> CREATE TABLE t1 (id1 serial, ...);
> ALTER SEQUENCE seq_t1_id1 RESTART WITH 5432 CYCLE;
>
> or the equivalent
>
> CREATE SEQUENCE seq_t1_id1 START WITH 5432 CYCLE;
> CREATE TABLE t1 (id1 serial, ...);
> ALTER SEQUENCE seq_t1_id1 OWNED BY t1.id1;
>
> PostgreSQL doesn't keep the START WITH information.
> But it should to perform a "restart" on the sequence,
> using the minval in this case wouldn't be correct.
I think you misunderstand what ALTER SEQUENCE RESTART does; it only
changes the current value of the sequence.
--
Decibel!, aka Jim C. Nasby, Database Architect decibel(at)decibel(dot)org
Give your computer some brain candy! www.distributed.net Team #1828
In response to
Responses
pgsql-hackers by date
Next :From: Bruce MomjianDate: 2008-04-02 23:03:09
Subject : Re: [GENERAL] SHA1 on postgres 8.3
Previous :From : Decibel!Date : 2008-04-02 22:33:38
Subject : Re: Proposal: new ereport option "errdetail_log"
pgsql-patches by date
Next :From: Bruce MomjianDate: 2008-04-03 00:33:16
Subject : Re: [PATCHES] psql slash# command
Previous :From : Simon RiggsDate : 2008-04-02 22:41:35
Subject : Re: Patch to add a feature to pg_standby