pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Aasmund Midttun Godal <postgresql@envisity.com>
To: pgsql-sql@postgresql.org
Subject: oid's in views.
Date: Fri, 19 Oct 2001 03:01:49 GMT
Message-ID: <20011019030149.23206.qmail@ns.krot.org> (raw)

CREATE VIEW testview AS SELECT test.oid, tull FROM test;
ERROR:  Attribute 'oid' has a name conflict
        Name matches an existing system attribute

I think this should be allowed, because if you do:
CREATE VIEW testview AS SELECT tull FROM test;

SELECT oid, tull FROM testview;

The oid column will always be blank. The oid column can never be used for anything usefull.

There are many workarounds to this problem - and I appreciate that altering this behaviour might be contradictory to some design philosophy you may have. Just my comment that's all!




Aasmund Midttun Godal

aasmund@godal.com - http://www.godal.com/
+47 40 45 20 46



view thread (13+ messages)  latest in thread

Message-ID: <20011019030149.23206.qmail@ns.krot.org>
Permalink:  ../20011019030149.23206.qmail@ns.krot.org/
Also on:    postgresql.org/message-id/20011019030149.23206.qmail@ns.krot.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: postgresql@envisity.com
  Subject: Re: oid's in views.
  In-Reply-To: <20011019030149.23206.qmail@ns.krot.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