Re: View unique rowid

From: "David Klugmann" <dklugmann(at)hotmail(dot)com>
To: rafacouto(at)gmail(dot)com
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: View unique rowid
Date: 2005-06-01 15:17:41
Message-ID: BAY104-F13E662F56440DC27A08BDAB2050@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)gmail(dot)com>
>Reply-To: Rafa Couto <rafacouto(at)gmail(dot)com>
>To: David Klugmann <dklugmann(at)hotmail(dot)com>
>CC: pgsql-sql(at)postgresql(dot)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(at)gmail(dot)com
>
>---------------------------(end of broadcast)---------------------------
>TIP 4: Don't 'kill -9' the postmaster

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Achilleus Mantzios 2005-06-01 15:21:53 Re: View unique rowid
Previous Message Rafa Couto 2005-06-01 14:53:19 Re: View unique rowid