pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: dklugmann@kerenor.co.uk
To: pgsql-sql@postgresql.org
Subject: Unique keys on views
Date: Wed,  1 Jun 2005 13:58:01 +0200
Message-ID: <28054826$1117626704429da150e73fc2.98783130@config20.schlund.de> (raw)


Hi 

Is it possible to refer to a unique row identifier on a view ?

I have the following view but in a subsequent select I need to refer to
each row's unique identifier and I know oid's are not valid for a view.

create view persontransit
as
select personid, planet, name as aspectname, position as planetposition,
position+angle as transitposition
from personplanet, aspect
union
select personid, planet, name as aspectname, position as planetposition,
position-angle as transitposition 
from personplanet, aspect
where name != 'OPPOSITION';

Many thanks

David



Message-ID: <28054826$1117626704429da150e73fc2.98783130@config20.schlund.de>
Permalink:  ../28054826$1117626704429da150e73fc2.98783130@config20.schlund.de/
Also on:    postgresql.org/message-id/28054826$1117626704429da150e73fc2.98783130@config20.schlund.de

 · 

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: dklugmann@kerenor.co.uk
  Subject: Re: Unique keys on views
  In-Reply-To: <28054826$1117626704429da150e73fc2.98783130@config20.schlund.de>

* 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