From: David Klugmann <dklugmann@hotmail.com>
To: rafacouto@gmail.com
Cc: pgsql-sql@postgresql.org
Subject: Re: View unique rowid
Date: Wed, 01 Jun 2005 15:17:41 +0000
Message-ID: <BAY104-F13E662F56440DC27A08BDAB2050@phx.gbl> (raw)
In-Reply-To: <22df564b05060107539603a26@mail.gmail.com>
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
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@hotmail.com, rafacouto@gmail.com
Subject: Re: View unique rowid
In-Reply-To: <BAY104-F13E662F56440DC27A08BDAB2050@phx.gbl>
* 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