Re: PG Admin - Mailing list pgsql-general

From Bob Pawley
Subject Re: PG Admin
Date
Msg-id 009101c71953$af6ffb00$8e904618@owner
Whole thread Raw
In response to PG Admin  (Bob Pawley <rjpawley@shaw.ca>)
List pgsql-general
> What exactly are the restrictions of a serial column?  It's just standard
> integer value with a default value that calls the nextval function.

The deletion process produces gaps and/or voids. The only way to resurect
the gapless sequence, starting at 1, is to drop and re-create the table or
serial column.

Dropping and recreating does the job but it can be unstable and requires
either on or two extra tables for each sequence you wish to generate.

Bob



----- Original Message -----
From: "Tony Caduto" <tony_caduto@amsoftwaredesign.com>
To: "Bob Pawley" <rjpawley@shaw.ca>; <pgsql-general@postgresql.org>
Sent: Monday, December 04, 2006 10:43 AM
Subject: Re: [GENERAL] PG Admin


> Bob Pawley wrote:
>> That's what they are doing.
>>
>> That is also what I am looking for, if it is accessable. If so, I can use
>> that information to add a sequential numerical element to my information
>> that doesn't have the restrictions of a serial column.
>>
>> Bob
>>
> Hi Bob,
>
> Well, if you create your tables WITH OIDs then each row has a OID
> associated with it.
>
> What exactly are the restrictions of a serial column?  It's just standard
> integer value with a default value that calls the nextval function.
>
> Later,
>
> --
> Tony Caduto
> AM Software Design
> http://www.amsoftwaredesign.com
> Home of PG Lightning Admin for Postgresql
> Your best bet for Postgresql Administration
>


pgsql-general by date:

Previous
From: wheel
Date:
Subject: Re: Restore database from files (not dump files)?
Next
From: Tony Caduto
Date:
Subject: Re: dynamic SQL - variable substitution in plpgsql