Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ivzWi-0002Po-Gm for pgsql-general@arkaria.postgresql.org; Mon, 27 Jan 2020 08:13:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ivzWh-0007Ob-BN for pgsql-general@arkaria.postgresql.org; Mon, 27 Jan 2020 08:13:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ivyK3-0005y9-6G for pgsql-general@lists.postgresql.org; Mon, 27 Jan 2020 06:56:35 +0000 Received: from portal-smtp-out.hot.ee ([194.126.101.125]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ivyJz-0002ce-NH for pgsql-general@postgresql.org; Mon, 27 Jan 2020 06:56:33 +0000 Received: from localhost (localhost [127.0.0.1]) by vm-hot-relay10.estpak.ee (Postfix) with ESMTP id 0E78916CF; Mon, 27 Jan 2020 08:56:29 +0200 (EET) X-Virus-Scanned: Debian amavisd-new at vm-hot-relay10.estpak.ee Received: from portal-smtp-out.hot.ee ([127.0.0.1]) by localhost (vm-hot-relay10.estpak.ee [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5vqUUVA7dny7; Mon, 27 Jan 2020 08:56:26 +0200 (EET) Received: from mail.hot.ee (hot-relayhost3.estpak.ee [213.180.2.81]) by vm-hot-relay10.estpak.ee (Postfix) with ESMTP id D3EE2184E; Mon, 27 Jan 2020 08:56:26 +0200 (EET) Received: from dell2 (66-63-196-88.sta.estpak.ee [88.196.63.66]) (Authenticated sender: kobruleht2) by HOT-Relayhost3.estpak.ee (Postfix) with ESMTPSA id 485gWs4jptzHGc; Mon, 27 Jan 2020 08:56:24 +0200 (EET) Message-ID: From: "Andrus" To: "pgsql-general" , "Adrian Klaver" References: <157139E4A01D436A859FB6612AE6BBD7@dell2> <1102fee1-eebe-dbe2-63a2-2120380bb2f8@aklaver.com> <111D51B7C5C64419810F09C229E1D917@dell2> <23417975-69b8-e273-2a58-c65beb16decf@aklaver.com> In-Reply-To: <23417975-69b8-e273-2a58-c65beb16decf@aklaver.com> Subject: Re: How to transfer databases form one server to other Date: Mon, 27 Jan 2020 08:56:18 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="windows-1257"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 16.4.3528.331 X-MimeOLE: Produced By Microsoft MimeOLE V16.4.3528.331 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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.