pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: dan@langille.org
Cc: pgsql-hackers@postgreSQL.org
Cc: pgsql-sql@postgreSQL.org
Subject: Re: Uniqueness of rule, constraint, and trigger names
Date: Mon, 04 Mar 2002 15:38:22 -0500
Message-ID: <7581.1015274302@sss.pgh.pa.us> (raw)
In-Reply-To: <200203042004.g24K4lk79699@lists.unixathome.org>
References: <200203042004.g24K4lk79699@lists.unixathome.org>

"Dan Langille" <dan@langille.org> writes:
> On 4 Mar 2002 at 14:24, Tom Lane wrote:
>> ... 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.

And then all we need is a time machine, so we can make existing
instances of pg_dump contain the tool?  It's not that easy ...

I am not sure that there's really a problem here, because I don't
think duplicate constraint names will be generated during plain
CREATE operations.  However, an ALTER TABLE might leave you with
a problem.  Hard to tell if this is critical enough to worry about.

			regards, tom lane



view thread (15+ messages)  latest in thread

Message-ID: <7581.1015274302@sss.pgh.pa.us>
Permalink:  ../7581.1015274302@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/7581.1015274302@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, dan@langille.org, pgsql-hackers@postgreSQL.org
  Subject: Re: Uniqueness of rule, constraint, and trigger names
  In-Reply-To: <7581.1015274302@sss.pgh.pa.us>

* 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