From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.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 02:04:04 -0600
Message-ID: <6aee220f-2438-5b7e-80e5-d59798581a2e@gmail.com> (raw)
In-Reply-To: <CAGuHJrNGnE+bbnP7VWnpD997sRP_u6o-90gHUd_gkdg45ZXA_A@mail.gmail.com>
References: <CAGuHJrNGnE+bbnP7VWnpD997sRP_u6o-90gHUd_gkdg45ZXA_A@mail.gmail.com>
On 12/12/20 8: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.
That could get really time- and disk-consuming if one of those "edits" was
to convert a column in a large 500M row table from numeric to text (or vice
versa), or add a column to the "middle" of a table.
Tricky to program, too, given all the foreign keys, partitions, etc, etc
that can be part of a table.
> Is there a tool that does this? Is there a tool that will dump the
> schema into separate directories and files like pgadmin does?
--
Angular momentum makes the world go 'round.
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: ronljohnsonjr@gmail.com
Subject: Re: Is there a way to dump schema to files on disk and keep them in sync
In-Reply-To: <6aee220f-2438-5b7e-80e5-d59798581a2e@gmail.com>
References: <CAGuHJrNGnE+bbnP7VWnpD997sRP_u6o-90gHUd_gkdg45ZXA_A@mail.gmail.com> <6aee220f-2438-5b7e-80e5-d59798581a2e@gmail.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