Re: Migration of db

From: "Greg Sabino Mullane" <greg(at)turnstep(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Migration of db
Date: 2010-01-04 12:48:59
Message-ID: e858833cd5eb2ff2d213101a603d736c@biglumber.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

> We have 2 databases test and prod. Now they are out of sync ( of
> course they will be to some extent ). But there are some functions in some
> schemas. we have to sync from prod to test. What I wanted to ask, is there
> any tool that you recommend for version control. Because we are having tough
> time tracking the changes

Create a git repo, and enforce that all DDL changes must be made by using
checked-in text files containing the changes. Each file should state at the
top of it when it was applied to each box.

As an aside, if you are syncing *from* prod to test, your process is
badly broken. :)

- --
Greg Sabino Mullane greg(at)turnstep(dot)com
PGP Key: 0x14964AC8 201001040747
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
-----BEGIN PGP SIGNATURE-----

iEYEAREDAAYFAktB46wACgkQvJuQZxSWSsgWNQCfR8BX5tJg3Uc/R8DdPYOUg4cT
x/UAoNsu60955j7coU/6vw+r0XZ9F28k
=STQi
-----END PGP SIGNATURE-----

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Yan Cheng Cheok 2010-01-04 12:53:16 Re: Insert Data Into Tables Linked by Foreign Key
Previous Message Albe Laurenz 2010-01-04 12:41:31 Re: SELECT does not find table created by itself