Thread: computed field on a table
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
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.
Peter Eisentraut wrote:
J
I would use a view which would keep the amount of accesses to the table low as well.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).
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