Re: OIDS - Mailing list pgsql-novice

From Bruno Wolff III
Subject Re: OIDS
Date
Msg-id 20060519154518.GA19641@wolff.to
Whole thread Raw
In response to OIDS  (Q Beukes <pgsql-novice@postgresql.org>)
List pgsql-novice
On Wed, May 17, 2006 at 14:21:47 +0200,
  Q Beukes <pgsql-novice@postgresql.org> wrote:
> Hey,
>
> I have a few questions/thoughts about OIDS.
>
> 1. What are the pros/cons of having them against not having them in your
> table.

Generally you don't want to use them. Use sequences/serial instead.

> 2. Are they unique throughout tables/database/postgres setup.

No. If you want to enforce uniqueness, you need to add a constraint and be
prepared to retry on failures.

pgsql-novice by date:

Previous
From: Verena Ruff
Date:
Subject: Re: select count(*) and limit
Next
From: kmh496
Date:
Subject: send psql output to file and setting pager=more