Created
January 31, 2020 12:30
-
-
Save b4tman/7c8b7f76089c34efbb52e9128347dd24 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE LANGUAGE plpgsql; | |
create function m1_exec(text) returns void as $BODY$BEGIN execute $1; END;$BODY$ language plpgsql; | |
select m1_exec('ALTER TABLE ' || table_name || ' SET WITHOUT OIDS;') from information_schema.tables where table_schema = 'public'; | |
drop function m1_exec |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment