Thread: computed field on a table

computed field on a table

From
David Garamond
Date:
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

From
Peter Eisentraut
Date:
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

From
"Joshua D. Drake"
Date:
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