Skip to content

Instantly share code, notes, and snippets.

View Ankhbayar's full-sized avatar

Ankhbayar Ankhbayar

View GitHub Profile
-- Function: clone_schema(text, text)
DROP FUNCTION clone_schema(text, text);
CREATE OR REPLACE FUNCTION clone_schema(source_schema text, dest_schema text)
RETURNS void AS
$BODY$
DECLARE
seq RECORD;