Re: SET CONSTRAINTS not schema-aware

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>, Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Bruno Wolff III <bruno(at)wolff(dot)to>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: SET CONSTRAINTS not schema-aware
Date: 2003-05-16 22:00:19
Message-ID: Pine.LNX.4.44.0305161601220.2224-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane writes:

> Right. In SQL92 constraint names have to be unique within the table's
> schema. Postgres allows two different tables to have similarly-named
> constraints, and that difference is the root of the issue.

But that should not prevent us from assigning an explicit schema to each
constraint, as we in fact currently do. This issue is a bit more tricky
than it seems. For example, constraints may also belong to a domain, so
even if we allowed SET CONSTRAINTS a.b.c it is still not clear that "b" is
a table.

--
Peter Eisentraut peter_e(at)gmx(dot)net

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-05-16 22:02:40 Re: Error message style guide, take 2
Previous Message Dann Corbit 2003-05-16 21:59:38 Re: Error message style guide, take 2