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 1icPWT-0001VF-Ex for pgsql-general@arkaria.postgresql.org; Wed, 04 Dec 2019 07:56:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1icPWS-0005vm-4F for pgsql-general@arkaria.postgresql.org; Wed, 04 Dec 2019 07:56:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1icPWR-0005ve-LQ for pgsql-general@lists.postgresql.org; Wed, 04 Dec 2019 07:56:31 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1icPWO-0004pu-Ny for pgsql-general@postgresql.org; Wed, 04 Dec 2019 07:56:31 +0000 Received: by mail-wr1-x443.google.com with SMTP id w15so7318836wru.4 for ; Tue, 03 Dec 2019 23:56:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=mfH7HtrBmgbu4Scc9G2mzKyVWK3LOAC6DMhkkQxPRx4=; b=0EXoLpkopSD4AvpvyzqAO/BOlFWPPKP1IV4Nbnk5sWn8Ri0tG+EWURfchwZSiE9pHh krVQ/rhHYRy759sSNTJfIxjEHGYeQ0UJZzqUKGl+6EQiYUE7CjQ6YkfNWklV76CSGAv+ eIg7/3DHrseV7QoFnR1CV9QqIV/s6IKtjPi3Oj5DOrWRsUcZO98w7panv+MK3j0Q/d/v fUm/ylV5m4SdqNXAkvt10uW0qt/caIvFPfgRAD2IG+J5e9ZPgcR/euntdQsudqXO6hTM NyJN1SApzKMiM9WmwnWE/VVAkIy6bsJz42SOaXXXqeD/oInjFUgWY6CjSPbRciV/p9w+ xLWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=mfH7HtrBmgbu4Scc9G2mzKyVWK3LOAC6DMhkkQxPRx4=; b=ackfhLj5XlAnqp5ZavJUtrOBOBxsCFd6ElrFQMbodSgbUPI2B3o999HcXA9T145AOL m1NTWOqIdXkrovrj9pJoK7/kvajU1KQyiaR+px3qq4nbJecFk52OUIXLTRdP+4LELuXS R+lriQy11FX+WSndfPDKG8323LdQqJrhR6aDCTcN7YZIxmb5sdHOp9VQAHVOncfPQqpA jcceUI6kT1EaVT12hqejy7I7YqWlL14J2eHwle7lVTUeINZx4su2OLk8DwZklUzNnJP6 gDDaRK8Sm1KYPqQbCsFgLFVMG1RQ86m8vTzkmrkgkH/SYlulLU92S18eqIa6QFs5Msxh VMTA== X-Gm-Message-State: APjAAAUC4kaSwwkfgi/AWBrGqsMTgXnBipVv46HsRUpmg1pmbiOjHlIT Nm+1CFMsDQycemRNjiKTyJjB8g== X-Google-Smtp-Source: APXvYqwopfq3PReOCs4mM7yNZ00lwqz7B+UiCuht9O9gOM7U6dN1UkZyZ94zPIEtzwI/inWO3EhjFA== X-Received: by 2002:adf:a285:: with SMTP id s5mr2404959wra.118.1575446187379; Tue, 03 Dec 2019 23:56:27 -0800 (PST) Received: from localhost.localdomain (217-149-170-6.nat.highway.telekom.at. [217.149.170.6]) by smtp.gmail.com with ESMTPSA id m3sm6958270wrs.53.2019.12.03.23.56.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Dec 2019 23:56:26 -0800 (PST) Message-ID: <1f2db9f0757d063bd185caa65b3ecf01e6a3ddcb.camel@cybertec.at> Subject: Re: upgrade and migrate From: Laurenz Albe To: Michael Paquier , Julie Nishimura Cc: "pgsql-general@lists.postgresql.org" , pgsql-general Date: Wed, 04 Dec 2019 08:56:26 +0100 In-Reply-To: <20191204044843.GD2381@paquier.xyz> References: <20191204044843.GD2381@paquier.xyz> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.5 (3.32.5-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, 2019-12-04 at 13:48 +0900, Michael Paquier wrote: > On Tue, Dec 03, 2019 at 10:32:22PM +0000, Julie Nishimura wrote: > > Hello, what is the best way to migrate from PostgreSQL 8.3.11 on > > x86_64-redhat-linux-gnu to PostgreSQL 9.6.16 on x86_64-pc-linux-gnu > > server, with minimal downtime? > > The caveat is the source has about 80 databases overall almost 30 > > TB. I could migrate the smallest ones (up to 1 tb) using pg_dump and > > pg_restore, but the largest hot database is almost 17 tb, and I am > > not sure how to approach this effort in a better and efficient way? > > pg_upgrade could be one way to go here. That's not the scale pg_dump > would be very good at. I would have personally avoided using pg_dump > above 10~20GB. Depending on the downtime you are ready to accept, > a migration based on Slony could be something to investigate. Right, Slony is the way to go, since pg_upgrade doesn't support 8.3. I would upgrade to a version more recent than 9.6. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com