Can I getting a unique ID from a select - Mailing list pgsql-general

From Timasmith
Subject Can I getting a unique ID from a select
Date
Msg-id 1172758562.246401.3010@j27g2000cwj.googlegroups.com
Whole thread Raw
Responses Re: Can I getting a unique ID from a select  (Bill Moran <wmoran@collaborativefusion.com>)
Re: Can I getting a unique ID from a select  (Bruno Wolff III <bruno@wolff.to>)
List pgsql-general
I am using hibernate, using a view like a read only table and I need a
primary key each time a select is issued.

So in Oracle terms this might work, though I am skeptical that
Hibernate is going to return a cached result.

create view myview as
select rownum, t1.field, t2.field
from tableOne t1, tableTwo t2
where t1.key = t2.fkey

select * from myview

But what I really need is

select makemeauniquekey, t1.field, t2.field
...

Maybe there is no way I think...  incrementing a sequence per select
is untenable.


pgsql-general by date:

Previous
From: Shiva Sarna
Date:
Subject: supporting 2000 simultaneous connections.
Next
From: Brent Wood
Date:
Subject: Re: General Ledger db design