Re: INSERT UNIQUE row?

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: pf(at)pfortin(dot)com, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: INSERT UNIQUE row?
Date: 2023-07-10 00:04:03
Message-ID: 0b2061ad-1a27-d2df-44f6-3af87edf9b6e@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 7/9/23 15:58, pf(at)pfortin(dot)com wrote:
> Hi,
>
> Trying to figure out how to insert new property addresses into an
> existing table.
>
> Can a UNIQUE constraint be applied to an entire row? Adding UNIQUE to
> each column won't work in such a case since there are multiple properties
> * on the same street
> * in the same town
> * with the same number on different streets
> * etc...

Does the locality you are in have something like the Property ID# and/or
Parcel # / Geo ID shown here:

https://property.whatcomcounty.us/propertyaccess/PropertySearch.aspx?cid=0

>
> Each row is only unique as an entity; but the columns are not...
>
> Is this covered in the docs?
>
> Thanks,
> Pierre
>
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2023-07-10 00:06:24 Re: INSERT UNIQUE row?
Previous Message David G. Johnston 2023-07-09 23:42:15 Re: INSERT UNIQUE row?