Re: Unique rows without a key - Mailing list pgsql-general

From Thalis A. Kalfigopoulos
Subject Re: Unique rows without a key
Date
Msg-id Pine.LNX.4.21.0106131114130.19889-100000@aluminum.cs.pitt.edu
Whole thread Raw
In response to Unique rows without a key  (Steve Micallef <stevenm@ot.com.au>)
List pgsql-general
You could have one additional column that contains a hash of the entire row, so you'd only need a unique index on this
hashcolumn. 

cheers,
thalis


On Wed, 13 Jun 2001, Steve Micallef wrote:

> Hi,
>
> Is there any way to force every row in a table to be unique without
> creating a unique key?
>
> My tables are fairly large (growing by a gig a day) and creating a primary
> key would basically double my disk usage.
>
> Thanks for your help,
>
> Steve Micallef
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>


pgsql-general by date:

Previous
From: Alex Pilosov
Date:
Subject: Re: Oracle news article
Next
From: Peter Eisentraut
Date:
Subject: Re: 7.1.2 temporary file area