pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: basti <mailinglist@unix-solution.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: How to transfer databases form one server to other
Date: Mon, 27 Jan 2020 22:27:34 +0100
Message-ID: <52eb33b7-65bd-ed38-dd73-04c61a7a72e3@unix-solution.de> (raw)
In-Reply-To: <3877abba-8863-0e41-d368-adc2e648c240@aklaver.com>
References: <157139E4A01D436A859FB6612AE6BBD7@dell2>
	<1102fee1-eebe-dbe2-63a2-2120380bb2f8@aklaver.com>
	<111D51B7C5C64419810F09C229E1D917@dell2>
	<23417975-69b8-e273-2a58-c65beb16decf@aklaver.com>
	<F6ED65CDABB64AFCAAD0932CC9CF481B@dell2>
	<3877abba-8863-0e41-d368-adc2e648c240@aklaver.com>

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.






view thread (13+ messages)

Message-ID: <52eb33b7-65bd-ed38-dd73-04c61a7a72e3@unix-solution.de>
Permalink:  ../52eb33b7-65bd-ed38-dd73-04c61a7a72e3@unix-solution.de/
Also on:    postgresql.org/message-id/52eb33b7-65bd-ed38-dd73-04c61a7a72e3@unix-solution.de

 · 

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: mailinglist@unix-solution.de
  Subject: Re: How to transfer databases form one server to other
  In-Reply-To: <52eb33b7-65bd-ed38-dd73-04c61a7a72e3@unix-solution.de>
  References: <157139E4A01D436A859FB6612AE6BBD7@dell2> <1102fee1-eebe-dbe2-63a2-2120380bb2f8@aklaver.com> <111D51B7C5C64419810F09C229E1D917@dell2> <23417975-69b8-e273-2a58-c65beb16decf@aklaver.com> <F6ED65CDABB64AFCAAD0932CC9CF481B@dell2> <3877abba-8863-0e41-d368-adc2e648c240@aklaver.com> <52eb33b7-65bd-ed38-dd73-04c61a7a72e3@unix-solution.de>

* 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