pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Katona Gabor <katonag@dragon.klte.hu>
To: pgsql-sql@postgresql.org
Subject: Re: How to union tables and have a field with UNIQUE constraint?
Date: Fri, 4 Jan 2002 09:08:50 +0100 (MET)
Message-ID: <Pine.GSO.4.10.10201040857160.4534-100000@dragon> (raw)
In-Reply-To: <15666.1010091097@sss.pgh.pa.us>



> I would argue that this should be disallowed, since it does not do
> anything useful and can only mislead people into thinking that it
> has some effect.
> 
> 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.

  OK, I understand the problem with referencing a view and I changed my code
to use CREATE TABLE AS instead of a view (the created table will change very
rarely, so I'll update it then via a trigger). Is this way ok now and will
work until the end of time :) ?
  And thanks for the answers.

		Gabor Katona





view thread (7+ messages)  latest in thread

Message-ID: <Pine.GSO.4.10.10201040857160.4534-100000@dragon>
Permalink:  ../Pine.GSO.4.10.10201040857160.4534-100000@dragon/
Also on:    postgresql.org/message-id/Pine.GSO.4.10.10201040857160.4534-100000@dragon

 · 

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: katonag@dragon.klte.hu
  Subject: Re: How to union tables and have a field with UNIQUE constraint?
  In-Reply-To: <Pine.GSO.4.10.10201040857160.4534-100000@dragon>

* 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