2010/11/10 pasman pasmaÅski <pasman.p@xxxxxxxxx>
Hello.
How to add comment on table with calculated value ?
COMMENT ON TABLE test IS 'Updated ' || current_date;
not works ...
Hi,
I'd suggest something like this:
do $$
begin
ÂÂexecute 'COMMENT ON TABLE test_count is ''Updated ' || current_date || '''';
end$$;Â
This would run on postgres from 9.0, for earlier versions, you could always write similar function.
regards
Szymon