From: Dan Langille <dan@langille.org>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@postgreSQL.org
Cc: pgsql-sql@postgreSQL.org
Subject: Re: Uniqueness of rule, constraint, and trigger names
Date: Mon, 4 Mar 2002 15:04:45 -0500
Message-ID: <200203042004.g24K4lk79699@lists.unixathome.org> (raw)
In-Reply-To: <7131.1015269848@sss.pgh.pa.us>
On 4 Mar 2002 at 14:24, Tom Lane wrote:
> For constraints, we'd need to change the code to be more careful to
> generate unique names for unnamed constraints. That doesn't seem
> difficult, but I'm a little worried about the possibility of errors
> in loading schemas from existing databases, where there might be
> non-unique constraint names.
Create a tool to generate unique constraint names during a dump. Sounds
like a pg_dump[all] switch to me.
> Perhaps it'd be safer to maintain the
> current behavior (no uniqueness required for constraint names).
I would rather see a simple and unambigous way to maintain a single
constraint. Perhaps a "unique/not-unique" knob is appropriate.
--
Dan Langille
The FreeBSD Diary - http://freebsddiary.org/ - practical examples
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: dan@langille.org, tgl@sss.pgh.pa.us, pgsql-hackers@postgreSQL.org
Subject: Re: Uniqueness of rule, constraint, and trigger names
In-Reply-To: <200203042004.g24K4lk79699@lists.unixathome.org>
* 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