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 12:09:10 -0700
Message-ID: <503bf40d-2b8d-cd49-75e8-1d5ea3333742@aklaver.com> (raw)
In-Reply-To: <CAGv31oe33ZcAC-6S4QSoP8UMKAT=d6Tqrn067cpBjT7WLhMrOw@mail.gmail.com>
References: <CAGv31oczCkZ_g_9VGZVqPut6by-4Q9EYJcF+zbBho9Q6dh1gmg@mail.gmail.com>
	<6a9da52e-a8a5-469d-8a54-0737d1eed493@aklaver.com>
	<CAGv31oe33ZcAC-6S4QSoP8UMKAT=d6Tqrn067cpBjT7WLhMrOw@mail.gmail.com>

On 06/13/2018 11:13 AM, Łukasz Jarych wrote:
> Hi Adrian,
> 
> thank you .
> 
> why i should use sqitch or any other software to catch the delta?
> 
> When i will export plan-text SQL , git should catch delta automatically?
> Can you please explain it?

You are correct Git will catch the changes in the plain text files.

What is nice about Sqitch and similar tools is they offer additional 
functionality, such as deploying to different servers(production, dev, 
testing, etc), declaring dependencies between changes, rolling back 
individual changes, etc. To get a sense of what is possible take a look 
here:

https://metacpan.org/pod/sqitchtutorial

I have found it very useful. It comes down to individual preference.

> 
> Best,
> Jacek
> 
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (5+ messages)  latest in thread

Message-ID: <503bf40d-2b8d-cd49-75e8-1d5ea3333742@aklaver.com>
Permalink:  ../503bf40d-2b8d-cd49-75e8-1d5ea3333742@aklaver.com/
Also on:    postgresql.org/message-id/503bf40d-2b8d-cd49-75e8-1d5ea3333742@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: <503bf40d-2b8d-cd49-75e8-1d5ea3333742@aklaver.com>
  References: <CAGv31oczCkZ_g_9VGZVqPut6by-4Q9EYJcF+zbBho9Q6dh1gmg@mail.gmail.com> <6a9da52e-a8a5-469d-8a54-0737d1eed493@aklaver.com> <CAGv31oe33ZcAC-6S4QSoP8UMKAT=d6Tqrn067cpBjT7WLhMrOw@mail.gmail.com> <503bf40d-2b8d-cd49-75e8-1d5ea3333742@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