Re: what database schema version management system to use? - Mailing list pgsql-general

From Jeff Janes
Subject Re: what database schema version management system to use?
Date
Msg-id CAMkU=1z7cauROi23agbyNUvtq=rg58j0OVK-HLeuNA=EaqEBJw@mail.gmail.com
Whole thread Raw
In response to what database schema version management system to use?  (Alexey Bashtanov <bashtanov@imap.cc>)
List pgsql-general
On Wed, Apr 6, 2016 at 3:55 AM, Alexey Bashtanov <bashtanov@imap.cc> wrote:
> Hi all,
>
> I am searching for a proper database schema version management system.
>
> My criteria are the following:
> 0) Open-source, supports postgresql
> 1) Uses psql to execute changesets (to have no problems with COPY,
> transaction management or sophisticated DDL commands, and to benefit from
> scripting)
> 2) Support repeatable migrations (SQL files that get applied every time they
> are changed, it is useful for functions or views tracking).

If you are using COPY, then you must be loading data (not just
changing schemas).

But if you are loading data, how can you have it be repeatable?  How
would it know which data needs to be (or not be) loaded again?  Do you
want it do a three way comparison (The current patch it is trying to
apply, the most recent patch that had been applied, and the live
database) and resolve conflicts?

Cheers,

Jeff


pgsql-general by date:

Previous
From: rob stone
Date:
Subject: Re: Trying to understand page structures in PG
Next
From: Tobia Conforto
Date:
Subject: Multi-row constraints, how to avoid unnecessary trigger execution?