Re: Unique rows without a key

From: GH <grasshacker(at)over-yonder(dot)net>
To: Steve Micallef <stevenm(at)ot(dot)com(dot)au>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Unique rows without a key
Date: 2001-06-12 23:19:56
Message-ID: 20010612181956.B11208@over-yonder.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jun 13, 2001 at 09:00:33AM +1000, some SMTP stream spewed forth:
> Hi,
>
> Is there any way to force every row in a table to be unique without
> creating a unique key?

Not exactly what you want, I suppose, but you could create a unique index
on the oid column --- the only additional overhead would be that of the
index.

> My tables are fairly large (growing by a gig a day) and creating a primary
> key would basically double my disk usage.

Obviously, the system would have to have some way of knowing what other
values exist -- you would have to have a unique index on some column.

> Thanks for your help,
> Steve Micallef

gh

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-06-12 23:28:14 Re: Merge join exhausting swap space
Previous Message Tom Lane 2001-06-12 23:16:26 Re: Connection Timeout ?