Re: View unique rowid - Mailing list pgsql-sql

From David Klugmann
Subject Re: View unique rowid
Date
Msg-id BAY104-F13E662F56440DC27A08BDAB2050@phx.gbl
Whole thread Raw
In response to Re: View unique rowid  (Rafa Couto <rafacouto@gmail.com>)
List pgsql-sql
Many thanks

I think the problem with using the oid from the primary table is that may 
rows in the view definition will get the same oid because of the union.

Thanks very much anyway.

I will look at the temporary sequence although I am not sure if sequences 
work with views.

Regards

David

>From: Rafa Couto <rafacouto@gmail.com>
>Reply-To: Rafa Couto <rafacouto@gmail.com>
>To: David Klugmann <dklugmann@hotmail.com>
>CC: pgsql-sql@postgresql.org
>Subject: Re: [SQL] View unique rowid
>Date: Wed, 1 Jun 2005 16:53:19 +0200
>
> > 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.
>
>
>You can get an oid from some table in view definition. May be it
>results to resolve your problem...
>
>You can also try "create temp sequence" (review
>http://archives.postgresql.org/pgsql-sql/2005-05/msg00126.php)
>
>
>select 'saludos';
>
>--
>Rafa Couto (caligari)
>mailto:rafacouto@gmail.com
>
>---------------------------(end of broadcast)---------------------------
>TIP 4: Don't 'kill -9' the postmaster




pgsql-sql by date:

Previous
From: Rafa Couto
Date:
Subject: Re: View unique rowid
Next
From: Achilleus Mantzios
Date:
Subject: Re: View unique rowid