Re: serial column - Mailing list pgsql-general

From Tom Lane
Subject Re: serial column
Date
Msg-id 13140.1159140653@sss.pgh.pa.us
Whole thread Raw
In response to Re: serial column  (Bob Pawley <rjpawley@shaw.ca>)
Responses Re: serial column  ("Brandon Aiken" <BAiken@winemantech.com>)
List pgsql-general
Bob Pawley <rjpawley@shaw.ca> writes:
> I am using the numbers to identify devices.
> If a device is deleted or replaced with another type of device I want the
> numbering to still be sequential.

It sounds to me like you oughtn't be storing these numbers in the
database at all.  You just want to attach them at display time --- they
are certainly utterly meaningless as keys if they can change at any
moment.

            regards, tom lane

pgsql-general by date:

Previous
From: Gevik Babakhani
Date:
Subject: Re: serial column
Next
From: Bob Pawley
Date:
Subject: Re: serial column