Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kI0mt-0004wI-MV for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Sep 2020 02:33:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kI0ms-0002cd-LY for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Sep 2020 02:33:42 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kI0mq-0002bv-U0 for pgsql-hackers@lists.postgresql.org; Tue, 15 Sep 2020 02:33:42 +0000 Received: from [64.147.123.19] (helo=wout3-smtp.messagingengine.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kI0mo-0004M9-33 for pgsql-hackers@lists.postgresql.org; Tue, 15 Sep 2020 02:33:39 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 37358E28; Mon, 14 Sep 2020 22:33:26 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 14 Sep 2020 22:33:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=nfExA2Tqthf60GWEDkm9df2IOul iHy73xezBkxKmGPk=; b=rxUjLoLfS9pM08DKTxc+UCZ5fsNkr/fSc212afRDqlX 8sdBz/bVS4Dcq8qZm3P8Gu7/V8gJYANbdr1DeND5VmxVgSyN2T5P5+aADUQ84TPK meO8WWldjynb/n7Yvu8ZhHgdBA0uYPK7HLbjxnmY2ToftXIX4zH8z+hf+Job3lk8 htc2cW0xRgnmJ6XIcLErFKf7XXQtH1sdTwxIEdLCccVjtryDN00+n0RU5Uj06Wk5 iYw34stKH8Txl/EeBJK2otgQWvAcuu13rb/im6a6BBqXJMtMNd6zDZ2Rr1n12bUI izR9IbAD3rUCa5kLe9+PimMU5hMDjxs+AFXnsmwxuWQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=nfExA2 Tqthf60GWEDkm9df2IOuliHy73xezBkxKmGPk=; b=XMskrqgitcO05D1rt3JM5I dFvW5xTW6ZUvHa0PIoqI7BIB8ozuX7EK9L/Hb98kZkAiELLGzzyA3VhGVZN2cH6H QIj2hLDXPDML3F3BInhzS1KpWookplp1ycPVsW2xNMTTy9DEffMydgmS6OalOuR8 O+pGOe6NXo7iJGaNB2EQ9tG3B8WhCsg0Add5g2qVJkBwaexAQmB2hU+a08QPGjYF SEHKdVvBwJmYc2SyBHTXTzNluAx05fYDrUQdaDqJKLL6UgTXB6IsAw7E8M7O6HG6 r3TdmGZpEXcu5JkkPiqIBZ5ppdc/r2/1gAF3CpmH5AH6do61ZyqVRRQxRCiPOEKw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudeijedgheeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpedvgeduuefhtdeuleettdevjeeh heeiveeuieegleetgeeljeelieeuieehgeevhfenucfkphepudduuddruddtvddrudektd drudekheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id B3439328006A; Mon, 14 Sep 2020 22:33:23 -0400 (EDT) Date: Tue, 15 Sep 2020 11:33:20 +0900 From: Michael Paquier To: Julien Rouhaud Cc: Justin Pryzby , PostgreSQL Hackers Subject: Re: Avoid useless retrieval of defaults and check constraints in pg_dump -a Message-ID: <20200915023320.GI2183@paquier.xyz> References: <20200712054850.GA92357@nol> <20200712142921.GA26220@telsasoft.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="WR+jf/RUebEcofwt" Content-Disposition: inline In-Reply-To: X-Host-Lookup-Failed: Reverse DNS lookup failed for 64.147.123.19 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --WR+jf/RUebEcofwt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jul 14, 2020 at 11:14:50AM +0200, Julien Rouhaud wrote: > Note that those extraneous queries were found while trying to dump > data out of a corrupted database. The issue wasn't an excessive > runtime but corrupted catalog entries, so bypassing this code (since I > was only interested in the data anyway) was simpler than trying to > recover yet other corrupted rows. Yeah, I don't see actually why this argument can prevent us from doing a micro optimization if it proves to work correctly. -- Michael --WR+jf/RUebEcofwt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl9gJ/AACgkQnvQgOdby QH3z9g//fVWayiD1jFsTMrGosHpVHJPxfCTo/8eY4CRCbm5NLwPuvsStDiX3GIu6 I8oEXW/Kiiiqi4RgvR0qOQwNxwbqTe3CHtpIxPX94GttIuFoV1fqusIavboPLLWj rZ57Cs93Ok2Wh4MPjVVyNL32Vcgdc0VovaVebfsliDckpwHF7jtupfXS1vvY+qlO mV01lqps0EF7KpfpskLg8fp7k/ceulJUuV15Ly76ofjbbhw0L0qeg1nqbIavnOaj uAxmnHODDyX9T9orOtxIp0pLwvNUy3PmbBGj9LFf5DIZc+znrcXO+n3mebuI6IDI ejz9eCVZKXKEJ3hBG7hNipISfwACM667lWmoQA9+RfsyH0FprKJUruRnF/Dq+El3 UflxhFsv+v3C8xmYyfJ7Upso/n8GTvl9shsoMJFrCpPYakOkudO8X4Ny9AxOEkiF 82hh+682X926q3jQFeR5AmzmSEJYARIyBXtFIv3+zbQCwaXhy+TdPUu26cvMc+md 08d2vldv9pGYBe563A7mJYOGN7pgaQxgtOmYOJFv8dTTRMQBwuiBiizVdgcjQlfs S2lFZZj3HgpI1b7tPEyvnplZVOexQDF7vY/o++8wFIP2qVvg9YeObsc1+NXzLmLZ Q7qX0EACoggl9cB4K2FKm/lMIbVQrbYwILsuU6so0LUJ/oq6Afc= =uyWh -----END PGP SIGNATURE----- --WR+jf/RUebEcofwt--