From: Andrus <kobruleht2@hot.ee>
To: pgsql-general <pgsql-general@postgresql.org>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Subject: Re: How to transfer databases form one server to other
Date: Mon, 27 Jan 2020 08:56:18 +0200
Message-ID: <F6ED65CDABB64AFCAAD0932CC9CF481B@dell2> (raw)
In-Reply-To: <23417975-69b8-e273-2a58-c65beb16decf@aklaver.com>
References: <157139E4A01D436A859FB6612AE6BBD7@dell2>
<1102fee1-eebe-dbe2-63a2-2120380bb2f8@aklaver.com>
<111D51B7C5C64419810F09C229E1D917@dell2>
<23417975-69b8-e273-2a58-c65beb16decf@aklaver.com>
Hi!
>> 3. Manually edit role definitions to delete role postgres since it exists
>> in new server.
>No need, it will throw a harmless error message and continue on.
By my knowledge, pgAdmin executes script in single transaction and rolls it
back on error.
Should psql used or is there some option in pgadmin.
>> To repeat transfer after testing:
>>
>> 1. Delete restored databases.
>> 2. Delete imported roles in new server
>That will probaly not end well. I'm guessing there are objects that have a
>dependency on the the roles.
If imported databases are dropped before, there will be hopefully no
dependencies.
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 transfer databases form one server to other
In-Reply-To: <F6ED65CDABB64AFCAAD0932CC9CF481B@dell2>
References: <157139E4A01D436A859FB6612AE6BBD7@dell2> <1102fee1-eebe-dbe2-63a2-2120380bb2f8@aklaver.com> <111D51B7C5C64419810F09C229E1D917@dell2> <23417975-69b8-e273-2a58-c65beb16decf@aklaver.com> <F6ED65CDABB64AFCAAD0932CC9CF481B@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