pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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:50:39 -0500
Message-ID: <200203042050.g24Kogk80096@lists.unixathome.org> (raw)
In-Reply-To: <7683.1015274872@sss.pgh.pa.us>
References: <200203042043.g24Khek80028@lists.unixathome.org>

On 4 Mar 2002 at 15:47, Tom Lane wrote:

> "Dan Langille" <dan@langille.org> writes:
> > It would be easily detected at load time.  Then you direct the user to
> > the tool mentioned above.
> 
> But if the user has already dumped and flushed his old installation,
> he's still in need of a time machine.

Agreed.  I had that same problem with upgrading to 7.2.  My solution was 
to install 7.1.3 on another box, load, massage, dump.  Next time, I'll 
keep the old version around a bit longer.

> Hmm, maybe what we need is a tool that can be applied during load.
> Essentially, alter incoming constraint names as needed to make them
> unique.  We could have this enabled by a SET switch...

I think that is an eloquent solution.
-- 
Dan Langille
The FreeBSD Diary - http://freebsddiary.org/ - practical examples




view thread (15+ messages)  latest in thread

Message-ID: <200203042050.g24Kogk80096@lists.unixathome.org>
Permalink:  ../200203042050.g24Kogk80096@lists.unixathome.org/
Also on:    postgresql.org/message-id/200203042050.g24Kogk80096@lists.unixathome.org

 · 

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