Re: schema change tracking

From: Mark Fletcher <markf(at)corp(dot)groups(dot)io>
To: Benedict Holland <benedict(dot)m(dot)holland(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: schema change tracking
Date: 2019-05-16 17:06:17
Message-ID: CAEO096oF-LGTk0KjL3FZZD2nSGDXE9SY6H-vDaJmwub2-y1-Kg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, May 16, 2019 at 9:41 AM Benedict Holland <
benedict(dot)m(dot)holland(at)gmail(dot)com> wrote:

>
> I need a tool that can track schema changes in a postgesql database, write
> scripts to alter the tables, and store those changes in git. Are there
> tools that exist that can do this?
>
> We ended up rolling our own. We do schema dumps and then use
https://www.apgdiff.com/ to diff them. For our relatively simple schemas,
it's worked fine. One thing to note, apgdiff doesn't support `ALTER TABLE
ONLY [a-z\.]+ REPLICA IDENTITY FULL;` lines, which we just remove before
diffing.

Cheers,
Mark

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Susan Hurst 2019-05-16 17:18:10 Re: Permissions for information_schema
Previous Message Paul Jungwirth 2019-05-16 16:59:29 Re: schema change tracking