Re: clone_schema function

From: "Michael Librodo <mike(dot)librodo(at)gmail(dot)com>" <mike(dot)librodo(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: clone_schema function
Date: 2017-02-14 12:46:52
Message-ID: a1a23952-0979-4189-3b5d-f2c69710af5a@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I had to modify the portion that copies FK constraint:

https://gist.github.com/mlibrodo/6f246c483e650dc716eba752a9d3c79a

Basically, the issue on my end was that the FK constraints on the
cloned(destination) schema seem to reference the source_schema

Responses

Browse pgsql-general by date

  From Date Subject
Next Message mpomykacz 2017-02-14 13:12:46 Re: Auto-Rollback option
Previous Message Dave Page 2017-02-14 10:44:04 PostgreSQL Code of Conduct Draft