Обсуждение: computed field on a table

Поиск
Список
Период
Сортировка

computed field on a table

От
David Garamond
Дата:
This is a feature of Interbase/Firebird. Is this planned for future
version of Postgres (I can always use a view for this though).

--
dave


Re: computed field on a table

От
Peter Eisentraut
Дата:
David Garamond wrote:
> This is a feature of Interbase/Firebird. Is this planned for future
> version of Postgres (I can always use a view for this though).

Use a trigger to keep a materialized version of the computed field up to
date, or use a view to compute the field dynamically.  No other
mechanisms are planned.


Re: computed field on a table

От
"Joshua D. Drake"
Дата:
Peter Eisentraut wrote:
David Garamond wrote: 
This is a feature of Interbase/Firebird. Is this planned for future
version of Postgres (I can always use a view for this though).   
 
I would use a view which would keep the amount of accesses to the table low as well.

J


Use a trigger to keep a materialized version of the computed field up to 
date, or use a view to compute the field dynamically.  No other 
mechanisms are planned.


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command   (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) 


-- 
Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC and S/JDBC
Postgresql support, programming shared hosting and dedicated hosting.
+1-503-667-4564 - jd@commandprompt.com - http://www.commandprompt.com
PostgreSQL Replicator -- production quality replication for PostgreSQL