Re: How to transfer databases form one server to other

From: basti <mailinglist(at)unix-solution(dot)de>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: How to transfer databases form one server to other
Date: 2020-01-27 21:27:34
Message-ID: 52eb33b7-65bd-ed38-dd73-04c61a7a72e3@unix-solution.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Am 27.01.20 um 21:47 schrieb Adrian Klaver:
> On 1/26/20 10:56 PM, Andrus wrote:
>> 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.
>
> There are options on pgAdmin:
> https://www.pgadmin.org/docs/pgadmin4/4.17/restore_dialog.html
> See:
>
> Single transaction
> Exit on error
>
> Can't remember if you are taking a custom format backup or plain text.
> If plain text you can use psql. If custom then will need to use pg_restore.
>

I have no read the fill post but perhaps netcat or ssh tunnel can be an
option to tansfer db's from a to b.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter J. Holzer 2020-01-27 22:46:16 Re: Need support on tuning at the time of index creation
Previous Message Tom Lane 2020-01-27 21:15:03 Re: temporary data after diskspace error