pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@enterprisedb.com>
To: Adrian Klaver <adrian.klaver@aklaver.com>
To: Tim Uckun <timuckun@gmail.com>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Is there a way to dump schema to files on disk and keep them in sync
Date: Sun, 13 Dec 2020 18:53:02 +0100
Message-ID: <f2a03993-8872-5b67-c06d-0b0583af4f5c@enterprisedb.com> (raw)
In-Reply-To: <94d0857d-fbeb-81d6-e285-f088e5efb472@aklaver.com>
References: <CAGuHJrNGnE+bbnP7VWnpD997sRP_u6o-90gHUd_gkdg45ZXA_A@mail.gmail.com>
	<94d0857d-fbeb-81d6-e285-f088e5efb472@aklaver.com>

On 12/13/20 6:34 PM, Adrian Klaver wrote:
> On 12/12/20 6:58 PM, Tim Uckun wrote:
>> I want to dump my postgres schema to disk in neat directories like
>> pgadmin presents. Then I want to be able to edit the files and sync
>> changes to the database and ideally if changes were made in the
>> database to sync them back to the disk.
>>
>> Is there a tool that does this? Is there a tool that will dump the
>> schema into separate directories and files like pgadmin does?
> 
> pgAdmin does not create directories, it just organizes the contents of
> the system catalogs into GUI elements.
> 
> For schema management I would suggest a tool like the one I use
> Sqitch(https://sqitch.org/). It will organize the process of schema
> creation and management.
> 

Yeah, that was my thought too. Or maybe look at the other schema
versioning tools available - we have a list on the wiki:

https://wiki.postgresql.org/wiki/Change_management_tools_and_techniques

I'm sure it's incomplete, but it's helpful nevertheless.


regards

-- 
Tomas Vondra
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company





view thread (10+ messages)  latest in thread

Message-ID: <f2a03993-8872-5b67-c06d-0b0583af4f5c@enterprisedb.com>
Permalink:  ../f2a03993-8872-5b67-c06d-0b0583af4f5c@enterprisedb.com/
Also on:    postgresql.org/message-id/f2a03993-8872-5b67-c06d-0b0583af4f5c@enterprisedb.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: tomas.vondra@enterprisedb.com, adrian.klaver@aklaver.com, timuckun@gmail.com
  Subject: Re: Is there a way to dump schema to files on disk and keep them in sync
  In-Reply-To: <f2a03993-8872-5b67-c06d-0b0583af4f5c@enterprisedb.com>
  References: <CAGuHJrNGnE+bbnP7VWnpD997sRP_u6o-90gHUd_gkdg45ZXA_A@mail.gmail.com> <94d0857d-fbeb-81d6-e285-f088e5efb472@aklaver.com> <f2a03993-8872-5b67-c06d-0b0583af4f5c@enterprisedb.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