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 1hDDJQ-0000eZ-2x for pgsql-general@arkaria.postgresql.org; Sun, 07 Apr 2019 19:18:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hDDJO-0002xK-MN for pgsql-general@arkaria.postgresql.org; Sun, 07 Apr 2019 19:18:38 +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 1hDDJO-0002wA-2i for pgsql-general@lists.postgresql.org; Sun, 07 Apr 2019 19:18:38 +0000 Received: from mail-oln040092013063.outbound.protection.outlook.com ([40.92.13.63] helo=NAM05-CO1-obe.outbound.protection.outlook.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hDDJK-000703-Rd for pgsql-general@lists.postgresql.org; Sun, 07 Apr 2019 19:18:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HSNzYG0lmxhm+kxS+xeIjyd+VtWRoMbJRdEUY6Z3ITo=; b=KP1bf2tA48gXG7F1ladhJ30pAhR6qpR/tdupOLCeOCIRIpTuSZ90w9+aKXcLPisbHzPI7dXC7p/XszwCyuIzzld9XVvHbGYGpfkvwz7HYALGiA8NyWzQSWacayUoO3bGL4XkpOqrTFMrSsz7pA1A/m1eSNJpwp/6WM9CtfT13qD3y7Vg6k5TIloJ+EKxJmi6Gf7YW6TBiZm+Vckazn6k64TWXTsUh2x9QMVb1o9md2Gt/ofpYmQh3/fr9V29UX69cIFg3WsvOdzSbKW0fkmOu6lAca7t3kaShD0MfIPP+5pXjtz0PqsgOwkVxJFhX6rWg/DGh5/kZ5bdclgzroXH3A== Received: from BY2NAM05FT036.eop-nam05.prod.protection.outlook.com (10.152.100.52) by BY2NAM05HT168.eop-nam05.prod.protection.outlook.com (10.152.101.113) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1792.7; Sun, 7 Apr 2019 19:18:33 +0000 Received: from BYAPR01MB3701.prod.exchangelabs.com (10.152.100.56) by BY2NAM05FT036.mail.protection.outlook.com (10.152.100.173) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1792.7 via Frontend Transport; Sun, 7 Apr 2019 19:18:33 +0000 Received: from BYAPR01MB3701.prod.exchangelabs.com ([fe80::3c48:513d:60f7:6afc]) by BYAPR01MB3701.prod.exchangelabs.com ([fe80::3c48:513d:60f7:6afc%2]) with mapi id 15.20.1771.021; Sun, 7 Apr 2019 19:18:32 +0000 From: senor To: "pgsql-general@lists.postgresql.org" Subject: Re: pg_upgrade --jobs Thread-Topic: pg_upgrade --jobs Thread-Index: AQHU7KUEoYaMmqXr9EqkQgpkSWov1KYvnAIAgAAGP06AAA0ygIAAC4Y+gAAS5gCAAAHVgIAABCYHgADioQCAAFvecg== Date: Sun, 7 Apr 2019 19:18:32 +0000 Message-ID: References: <1c0469fb-1878-35ac-8468-78ce47299638@aklaver.com> <16144.1554588125@sss.pgh.pa.us> <20138.1554594658@sss.pgh.pa.us> <41c4d2a3-0a0a-bec3-7609-ec232b95f27b@gmail.com> , In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:2FD29E5D12AD15E173FCEA166271E34BED319C8DD71077C889CB74B4C0C52ADC;UpperCasedChecksum:6FA1BE74ED1DF3070EBE720D1A13CA64FA43DFB523ABDC3B13BA41A10FDCC332;SizeAsReceived:7324;Count:44 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [416VjDhgZgY+vrTkQcvKgN8y365IyoXK] x-ms-publictraffictype: Email x-incomingheadercount: 44 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(20181119110)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1601125500)(1603101475)(1701031045);SRVR:BY2NAM05HT168; x-ms-traffictypediagnostic: BY2NAM05HT168: x-microsoft-antispam-message-info: lRO6A54jGI7Pzbk3sM4+R3V2eoDyAhycbKCdCD+JLI67dCzAYQxWNIgwadDiBLqh Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: fe943d70-e94c-4c9c-62a0-08d6bb8dd34d X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Apr 2019 19:18:32.8159 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2NAM05HT168 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I just noticed I missed Sherrylyn's post. I did some reading about Slony and believe it is would be useful if I had t= he time to dig in. As pointed out, it's not an out-of-the box solution. It = is included on the TODO list though. For now I can only dream of the 86 sec= ond down time. Thanks ________________________________________ From: Sherrylyn Branchaw Sent: Sunday, April 7, 2019 6:43 AM To: senor Cc: pgsql-general@lists.postgresql.org Subject: Re: pg_upgrade --jobs are there any shortcuts to upgrading that would circumvent exporting the en= tire schema? By "shortcuts," do you mean you want to minimize the time and energy you pu= t into the upgrade, or that you want to minimize database downtime? If you = mean downtime, I was able to upgrade a customer-facing database with ~350,0= 00 tables from Postgres 9.0 to 9.6 last year with only 86 seconds of downti= me, using Slony, but I had to make many custom modifications to Slony and t= est thoroughly beforehand, and it was not for the faint of heart, the press= ed for time, or the inexperienced. There may be better ways (and if so, I w= ould be curious to learn about them), but Slony was the tool with which I w= as most familiar at the time. This method does, of course, require exporting the entire schema, but becau= se our only constraint was to minimize customer downtime, and the database = was online while the schema was being exported, we didn't care how long it = took. Your constraints may be different. For those reading: we do know that 350,000 tables is Doing It Wrong, and we= 're getting rid of them, but we decided being on an EOLed version of Postgr= es was worse and should be fixed first. Sherrylyn