Skip to content

Instantly share code, notes, and snippets.

@seahrh
Created January 29, 2021 08:23
Show Gist options
  • Save seahrh/66434a6396179c931ff81bd708767d7d to your computer and use it in GitHub Desktop.
Save seahrh/66434a6396179c931ff81bd708767d7d to your computer and use it in GitHub Desktop.
CREATE OR REPLACE PROCEDURE sp_update_ddl()
AS $$
BEGIN
alter table myschema.mytable add column newcolumn bigint;
EXCEPTION
WHEN OTHERS THEN
raise 'exception in filename.sql';
END
$$ LANGUAGE plpgsql
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment