oid's in views. - Mailing list pgsql-sql

From Aasmund Midttun Godal
Subject oid's in views.
Date
Msg-id 20011019030149.23206.qmail@ns.krot.org
Whole thread Raw
Responses Re: oid's in views.  ("Josh Berkus" <josh@agliodbs.com>)
List pgsql-sql
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
somedesign 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


pgsql-sql by date:

Previous
From: "David Allardyce"
Date:
Subject: Table Constraints with NULL values
Next
From: Bhuvan A
Date:
Subject: Need a VIEW without SUB-SELECT