Re: OIDS

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Q Beukes <pgsql-novice(at)postgresql(dot)org>
Subject: Re: OIDS
Date: 2006-05-19 15:45:18
Message-ID: 20060519154518.GA19641@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Wed, May 17, 2006 at 14:21:47 +0200,
Q Beukes <pgsql-novice(at)postgresql(dot)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.

In response to

  • OIDS at 2006-05-17 12:21:47 from Q Beukes

Browse pgsql-novice by date

  From Date Subject
Next Message kmh496 2006-05-20 00:28:46 send psql output to file and setting pager=more
Previous Message Verena Ruff 2006-05-19 06:52:02 Re: select count(*) and limit