pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Stephan Szabo <sszabo@megazone23.bigpanda.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: How to union tables and have a field with UNIQUE constraint?
Date: Thu, 03 Jan 2002 18:26:41 -0500
Message-ID: <1002.1010100401@sss.pgh.pa.us> (raw)
In-Reply-To: <20020103134126.Y14151-100000@megazone23.bigpanda.com>
References: <20020103134126.Y14151-100000@megazone23.bigpanda.com>

Stephan Szabo <sszabo@megazone23.bigpanda.com> writes:
>> Since triggers on a view won't do anything either, I don't see how one
>> could expect REFERENCES to a view to work.  The system ought to reject
>> all this stuff as unimplemented.

> I think that the insert/update on the fk table will work, but yeah, the
> parts on the pk table won't, so that's no good.  I wouldn't want to
> bother for 7.2, but putting in something to make it so you can't reference
> a view is probably a good idea, at least until we can work out a way
> to make constraints on views work.

Investigation showed that there were a couple of other utility
statements that were also missing adequate checks on permissions and
table type.  I've applied patches.

			regards, tom lane



view thread (7+ messages)  latest in thread

Message-ID: <1002.1010100401@sss.pgh.pa.us>
Permalink:  ../1002.1010100401@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1002.1010100401@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, sszabo@megazone23.bigpanda.com
  Subject: Re: How to union tables and have a field with UNIQUE constraint?
  In-Reply-To: <1002.1010100401@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