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 1hCvzn-0001i8-8e for pgsql-general@arkaria.postgresql.org; Sun, 07 Apr 2019 00:49:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hCvym-0001y7-1l for pgsql-general@arkaria.postgresql.org; Sun, 07 Apr 2019 00:48:12 +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 1hCvyl-0001y0-6G for pgsql-general@lists.postgresql.org; Sun, 07 Apr 2019 00:48:11 +0000 Received: from mail-oln040092001054.outbound.protection.outlook.com ([40.92.1.54] helo=NAM01-BY2-obe.outbound.protection.outlook.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hCvyd-0001N5-Fu for pgsql-general@lists.postgresql.org; Sun, 07 Apr 2019 00:48:10 +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=K6gobmsS9qJIKiRux1vLbQml7QJeRxUb0WthXX/HmjQ=; b=e6f30yTwpNHRwMY1oFgUUexGIY5BSUTtLEGFHpsi6AL/Zs14GSY0BMp443fk0mHr9CmW7u6dhgMylDt96QRo5rLfN0POwPqfOsdtZIcSBKJf9q0/zsZPpL0D+j+LjEwEYBOD5FGIt2BHcr9w0z4rdaSt0Iy5rz58xZH1j8lX/RxSvM59Tjamc10nczmoRO7Vhctt7p6yy6ORUT2U8MZ8cLUN4FSzFj5jFCBUTbVYTkhBmvvq8z6Jt3moIAX4OEXfJxmA6UGmyx8BRSaVs5Kw/ng8SlWollRpzfIZujj3cbpU73MQYSM/qbSm6cEOCcGvc9ApziHBItgdRZOzuutK6Q== Received: from BN3NAM01FT020.eop-nam01.prod.protection.outlook.com (10.152.66.57) by BN3NAM01HT142.eop-nam01.prod.protection.outlook.com (10.152.67.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1771.16; Sun, 7 Apr 2019 00:47:59 +0000 Received: from BYAPR01MB3701.prod.exchangelabs.com (10.152.66.57) by BN3NAM01FT020.mail.protection.outlook.com (10.152.67.227) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1771.16 via Frontend Transport; Sun, 7 Apr 2019 00:47:59 +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.1750.021; Sun, 7 Apr 2019 00:47:59 +0000 From: senor To: "pgsql-general@lists.postgresql.org" Subject: Re: pg_upgrade --jobs Thread-Topic: pg_upgrade --jobs Thread-Index: AQHU7KUEoYaMmqXr9EqkQgpkSWov1KYvnAIAgAAGP06AAA0ygIAAC4Y+gAAS5gCAAAHVgIAABCYH Date: Sun, 7 Apr 2019 00:47:59 +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: <41c4d2a3-0a0a-bec3-7609-ec232b95f27b@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:8457FE60B8AA10F73B6EF610E132CDB7E09B7F217AC94F86193C8CD2048FB42D;UpperCasedChecksum:7B434E92A795FF5F72D55948799D65988648047B74D9F3DB79A505778B7D88F0;SizeAsReceived:7135;Count:44 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [2//wfuegaUqW+zgeoBeaeOwz/5iIBY85] 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)(2017031323274)(2017031324274)(2017031322404)(1601125500)(1603101475)(1701031045);SRVR:BN3NAM01HT142; x-ms-traffictypediagnostic: BN3NAM01HT142: x-microsoft-antispam-message-info: vdjbJr28+0mN1ALjddRGHGGrgz6sp3jM3E2B2kv72A6RA8+I3rSkxHD1ylk4RXFO 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: a682bcb4-7ed3-492e-321d-08d6baf2aed1 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Apr 2019 00:47:59.5950 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3NAM01HT142 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thanks Tom for the explanation. I assumed it was my ignorance of how the sc= hema was handled that was making this look like a problem that had already = been solved and I was missing something. I fully expected the "You're Doing It Wrong" part. That is out of my contro= l but not beyond my influence. I suspect I know the answer to this but have to ask. Using a simplified exa= mple where there are 100K sets of 4 tables, each representing the output of= a single job, are there any shortcuts to upgrading that would circumvent e= xporting the entire schema? I'm sure a different DB design would be better = but that's not what I'm working with. Thanks ________________________________________ From: Ron Sent: Saturday, April 6, 2019 4:57 PM To: pgsql-general@lists.postgresql.org Subject: Re: pg_upgrade --jobs On 4/6/19 6:50 PM, Tom Lane wrote: senor writes: [snip] The --link option to pg_upgrade would be so much more useful if it weren't still bound to serially dumping the schemas of half a million tables. To be perfectly blunt, if you've got a database with half a million tables, You're Doing It Wrong. Heavy (really heavy) partitioning? -- Angular momentum makes the world go 'round.