From: pf@pfortin.com
To: pgsql-general@lists.postgresql.org
Subject: INSERT UNIQUE row?
Date: Sun, 9 Jul 2023 18:58:07 -0400
Message-ID: <20230709185807.1bc9afd9.pfortin@pfortin.com> (raw)
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...
Each row is only unique as an entity; but the columns are not...
Is this covered in the docs?
Thanks,
Pierre
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: pf@pfortin.com
Subject: Re: INSERT UNIQUE row?
In-Reply-To: <20230709185807.1bc9afd9.pfortin@pfortin.com>
References: <20230709185807.1bc9afd9.pfortin@pfortin.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox