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 1mJGOJ-0006Ss-Rj for pgsql-general@arkaria.postgresql.org; Thu, 26 Aug 2021 14:30:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mJGOI-0004Fs-OA for pgsql-general@arkaria.postgresql.org; Thu, 26 Aug 2021 14:30:02 +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 1mJGOI-0004Em-AA for pgsql-general@lists.postgresql.org; Thu, 26 Aug 2021 14:30:02 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mJGOC-0001sR-6j for pgsql-general@lists.postgresql.org; Thu, 26 Aug 2021 14:30:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=In-Reply-To:Content-Type:MIME-Version:References:Reply-To: Message-ID:Subject:Cc:To:Sender:From:Date:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=BMBQnQ/GOmLlCPChtFzrTDaTOBLYernRF+a5osv/Bhg=; b=HK26x+7yeQz298k4IY+onbbu45 3lpQ6Mdh79HQIEGGySw7mZxwo8i712oh0qmJyUVx0mKaTEmMJ2cskgsaQKyHTiljjlM2O3dqaGl70 aKPpcNkwYDW7nQHKdSZDs7qTzbBM6X2fWpiFZDPLNWAEzU0SN1SDAfrVN16RQwmh4yJ8=; Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by depesz.com with esmtpa (Exim 4.92) (envelope-from ) id 1mJGOA-0000Wt-1F; Thu, 26 Aug 2021 16:29:54 +0200 Date: Thu, 26 Aug 2021 16:29:53 +0200 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: Tom Lane Cc: pgsql-general Subject: Re: Can we get rid of repeated queries from pg_dump? Message-ID: <20210826142953.GA27889@depesz.com> Reply-To: depesz@depesz.com References: <20210826084430.GA26282@depesz.com> <648517.1629986527@sss.pgh.pa.us> <20210826140827.GA15868@depesz.com> <649446.1629987629@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <649446.1629987629@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Aug 26, 2021 at 10:20:29AM -0400, Tom Lane wrote: > hubert depesz lubaczewski writes: > > On Thu, Aug 26, 2021 at 10:02:07AM -0400, Tom Lane wrote: > >> hubert depesz lubaczewski writes: > >>> Wouldn't it be possible to get all type formats at once, and cache them > >>> in pg_dump? Or at the very least reuse already received information? > > >> Send a patch ... > > > Yeah, that's not going to work, my C skills are next-to-none :( > > I guess I'll have to wait till someone else will assume it's a problem, > > someone with skills to do something about it. > > Well, you could move it forward by doing the legwork to identify which > queries are worth merging. Is it really sane to do a global "select Sure. On it. Will report back when I'll have more info. Best regards, depesz