pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Łukasz Jarych <jaryszek@gmail.com>
To: pgsql-general@postgresql.org >> PG-General Mailing List <pgsql-general@postgresql.org>
Subject: Re: Using GIT to caught delta between database versions
Date: Wed, 13 Jun 2018 10:47:53 -0700
Message-ID: <6a9da52e-a8a5-469d-8a54-0737d1eed493@aklaver.com> (raw)
In-Reply-To: <CAGv31oczCkZ_g_9VGZVqPut6by-4Q9EYJcF+zbBho9Q6dh1gmg@mail.gmail.com>
References: <CAGv31oczCkZ_g_9VGZVqPut6by-4Q9EYJcF+zbBho9Q6dh1gmg@mail.gmail.com>

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.klaver@aklaver.com




view thread (5+ messages)  latest in thread

Message-ID: <6a9da52e-a8a5-469d-8a54-0737d1eed493@aklaver.com>
Permalink:  ../6a9da52e-a8a5-469d-8a54-0737d1eed493@aklaver.com/
Also on:    postgresql.org/message-id/6a9da52e-a8a5-469d-8a54-0737d1eed493@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, jaryszek@gmail.com
  Subject: Re: Using GIT to caught delta between database versions
  In-Reply-To: <6a9da52e-a8a5-469d-8a54-0737d1eed493@aklaver.com>
  References: <CAGv31oczCkZ_g_9VGZVqPut6by-4Q9EYJcF+zbBho9Q6dh1gmg@mail.gmail.com> <6a9da52e-a8a5-469d-8a54-0737d1eed493@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox