So, where are you headed. Should the third field ALWAYS be field2
with channel replcaed by AAAA? Or could it change after you've set it
at first to that? If it will always be the same as field2 with the
replacement, then creating a simple updatable view with the third row
always computed is a reasonable choice.
If you just want it set on insert or update of field2, but then want
it to be modifiable, then a trigger might be a good answer.
--
Sent via pgsql-general mailing list (pgsql-...@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general