Re: [INTERFACES] calculated identity field in views, again... - Mailing list pgsql-general

From Greg Stark
Subject Re: [INTERFACES] calculated identity field in views, again...
Date
Msg-id 877jifwp6r.fsf@stark.xeocode.com
Whole thread Raw
In response to calculated identity field in views, again...  ("Zlatko Matic" <zlatko.matic1@sb.t-com.hr>)
List pgsql-general
"Zlatko Matic" <zlatko.matic1@sb.t-com.hr> writes:

> In regular tables, I use bigserial field, but how can I create calculated
> bigserial column in a view ?

You would have to create a sequence and reference it with
nextval('sequencename') in your view. But I doubt very much that it will do
anything useful.

It sounds like Access wants to be able to update records by looking them up by
primary key. In that case assigning a new value in your view will make
Postgres make up a brand new number that is utterly useless for finding the
record again later.

--
greg

pgsql-general by date:

Previous
From: "Lipy Reis"
Date:
Subject: Postgre 8.0 for Linux i586
Next
From: Oleg Bartunov
Date:
Subject: Re: Interesting article on transactional algorithms includes