From: Andrus <kobruleht2@hot.ee>
To: pgsql-general <pgsql-general@postgresql.org>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Subject: Re: How to restore to empty database
Date: Fri, 31 Jan 2020 08:21:45 +0200
Message-ID: <DB4F4B28299F425EB99244AC64359A4D@dell2> (raw)
In-Reply-To: <8ac01396-cf14-0198-c49f-5f0bd298e544@aklaver.com>
References: <D3F14323F35F4DC4BA3E517ED11199E1@dell2>
<8f1d29bd-907e-e1c5-cc5f-2b9cade5af19@aklaver.com>
<332CC5FE386B4B86AAE5556896A635ED@dell2>
<8ac01396-cf14-0198-c49f-5f0bd298e544@aklaver.com>
Hi!
>These days 37 GB is relatively small, so you maybe getting into the realm
>of premature optimization. Do the 24 databases represent an entire cluster
>you are trying to transfer?
Basically yes.
Cluster contains also small test database which actually does not need
transferred but I can delete it manually after transfer.
Also postgres, template0 and template1 are not used directly by applications
and probably does not need to be transferred.
>If so have you looked at pg_dumpall?:
>https://www.postgresql.org/docs/12/app-pg-dumpall.html
>It is a text based backup, but it will include all the databases and the
>globals.
Source cluster is in old Debian 6 Squeeze running Postgres 9.1
Should I create pipe using pg_dumpall and restore everything from old using
pipe instead of pg_dump/pg_restore ?
Andrus.
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: kobruleht2@hot.ee, adrian.klaver@aklaver.com
Subject: Re: How to restore to empty database
In-Reply-To: <DB4F4B28299F425EB99244AC64359A4D@dell2>
References: <D3F14323F35F4DC4BA3E517ED11199E1@dell2> <8f1d29bd-907e-e1c5-cc5f-2b9cade5af19@aklaver.com> <332CC5FE386B4B86AAE5556896A635ED@dell2> <8ac01396-cf14-0198-c49f-5f0bd298e544@aklaver.com> <DB4F4B28299F425EB99244AC64359A4D@dell2>
* 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