Re: [SQL] Uniqueness of rule, constraint, and trigger names - Mailing list pgsql-hackers

From Stephan Szabo
Subject Re: [SQL] Uniqueness of rule, constraint, and trigger names
Date
Msg-id 20020304145040.R81357-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Re: [SQL] Uniqueness of rule, constraint, and trigger names  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Mon, 4 Mar 2002, Tom Lane wrote:

> Stephan Szabo <sszabo@megazone23.bigpanda.com> writes:
> > On Mon, 4 Mar 2002, 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
>
> > Another question would be what to do with inherited constraints that
> > conflict in multiple inheritance cases.  It'd probably be safe to rename
> > those on the child table to be unique,
>
> I'd just raise an error, I think, unless perhaps the constraints are
> identical (for some definition of identical).  We don't allow
> conflicting column definitions to be inherited, so why constraints?

Good point.  That's probably better than autorenaming them.




pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [SQL] Uniqueness of rule, constraint, and trigger names
Next
From: Tom Lane
Date:
Subject: Planned cleanups in attribute parsing