I have a PostgreSQL table with default values for columns that were not specified in the insert query. How can I run query to update column value if its current value is equal to DEFAULT?
In MySQL, I have
UPDATE t SET foo = 'foo' WHERE foo = DEFAULT(foo);
but it is not working in PosgtreSQL.