From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Erik Wienhold <ewie@mailbox.org>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Design database schemas around a common subset of objects
Date: Mon, 8 Nov 2021 08:25:42 -0800
Message-ID: <2f5d8e00-666f-62d1-8108-a0fcd02a8fa8@aklaver.com> (raw)
In-Reply-To: <1116172276.274316.1636330474638@office.mailbox.org>
References: <766855348.80521.1636243329249@office.mailbox.org>
<8555f244-6bc0-51b0-9143-8caeaed150a7@aklaver.com>
<1116172276.274316.1636330474638@office.mailbox.org>
On 11/7/21 16:14, Erik Wienhold wrote:
> Hi Adrian,
>
>> On 07/11/2021 18:38 Adrian Klaver <adrian.klaver@aklaver.com> wrote:
>>
>> My questions for this are:
> I'm thinking about something like merges in Git. Database schemas for
> project-a and project-b are like separate repositories and changes in core
> are merged as necessary. This along with project-specific changes ("o" in
> the diagram below) should result in a sequence of migrations applied to the
> respective databases.
>
> project-a oo--o--ooo-o---o--oo---->
> ___/ _/ _________/
> / / /
> core o--oo-o---o-o--o-->
> \ \__ \
> \ \ \
> project-b o--ooo--o-o-o--ooo----->
>
> These merges (always from core to the projects) form a directed acyclic
> graph from which the migration sequence can be generated using a topological
> ordering.
>
>> 4) Are you using or have you looked at Sqitch(https://sqitch.org/)?
>
> Already looking into it after stumbling across it during research on the
> mailing lists ;)
I think of Sqitch as version control(of database) inside the version
control(VCS e.g. Git). Pretty sure it will cover your use case. Since
you mentioned mailing list I will point you at the Sqitch one
(https://groups.google.com/g/sqitch-users).
>
> Erik
>
--
Adrian Klaver
adrian.klaver@aklaver.com
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, ewie@mailbox.org
Subject: Re: Design database schemas around a common subset of objects
In-Reply-To: <2f5d8e00-666f-62d1-8108-a0fcd02a8fa8@aklaver.com>
References: <766855348.80521.1636243329249@office.mailbox.org> <8555f244-6bc0-51b0-9143-8caeaed150a7@aklaver.com> <1116172276.274316.1636330474638@office.mailbox.org> <2f5d8e00-666f-62d1-8108-a0fcd02a8fa8@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