Re: Using GIT to caught delta between database versions

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Łukasz Jarych <jaryszek(at)gmail(dot)com>, "pgsql-general(at)postgresql(dot)org >> PG-General Mailing List" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Using GIT to caught delta between database versions
Date: 2018-06-13 17:47:53
Message-ID: 6a9da52e-a8a5-469d-8a54-0737d1eed493@aklaver.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 06/13/2018 10:42 AM, Łukasz Jarych wrote:
> Hi Guys,
>
> how use git to catch delta between database versions?

Use sqitch?:

https://sqitch.org/

>
> As version i will do schemas.
> So we have version one, finishing it, and this version should be put in
> GIT.
> And created schema for the version.
>
> Which formats i should use?
>
> pg_dump creates only binary files? (i should use text file here).

It will create text files, that is actually the default:

https://www.postgresql.org/docs/10/static/app-pgdump.html

-F format
--format=format

Selects the format of the output. format can be one of the following:

p
plain

Output a plain-text SQL script file (the default).

>
> Best,
> Jacek

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Łukasz Jarych 2018-06-13 18:13:08 Re: Using GIT to caught delta between database versions
Previous Message Mukesh Chhatani 2018-06-13 17:47:44 Unable to terminate process started from PLV8 function