I\'m looking for a way to script postgreSQL schema changes in an idempotent manner.
In MSSQL I could do something like this:
if(not exists(select * from
You should be able to use plpgsql:
create language plpgsql; create function f() ... as $$ $$language plpgsql; select f();