Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tqFdO-001sed-V7 for pgsql-hackers@arkaria.postgresql.org; Thu, 06 Mar 2025 18:07:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tqFdN-002smk-Lh for pgsql-hackers@arkaria.postgresql.org; Thu, 06 Mar 2025 18:07:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tqFdN-002smQ-BK for pgsql-hackers@lists.postgresql.org; Thu, 06 Mar 2025 18:07:49 +0000 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tqFdL-001LZj-1l for pgsql-hackers@lists.postgresql.org; Thu, 06 Mar 2025 18:07:48 +0000 Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-223594b3c6dso17875525ad.2 for ; Thu, 06 Mar 2025 10:07:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20230601.gappssmtp.com; s=20230601; t=1741284467; x=1741889267; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=JmFNz1n1p2VaZ03L8UpSVvt7KDTKJUl15cK5Q9H8jHk=; b=BaCUQR6PX331EtVdtxu6I6pzqgTcmLJSSo9CFF/4Wl4qH3Fjz0+K6HRDSZY96tccgt wXS8J2zwdOpKsVtC7HhbM/+lYS2mOYoFQtEKiGwnQ8zu3U8oQY76Belv8FUzobIMM0Gs gUpdmBatsNsfzk2folgYqukGYJW4yhPUYpmD8ae2P6p1oo2sEJo3oWy3SAnXyHO5sjjM ciWHJT1hlCAzgMpRy9Lpt/TfT/2vPxjLSsdkZP1M0Rg56ImVjvKfYs/IzSpKZwfdlTx/ OoRnGqpym9FeFTFrdCofe10ipsyzCSdu/yctaaYPcSS4MVJ7A37gMuVMkmdQP/ewrrD1 UHsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741284467; x=1741889267; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=JmFNz1n1p2VaZ03L8UpSVvt7KDTKJUl15cK5Q9H8jHk=; b=pR6qAN+nGW0IVuTSj0mO0BLyJHz84hhcP9c+XYnS2B6yNt5PwNBZ+nvi94EqYw9a1W Q9vzvfY+McvybVp8gIntXQ0cg/9/rFOHoEbWdnQy5d9jZ7i1mQgcrtptpuoDqlhkuF/Q q0BsUx9R76XNwhk7auNApY2MbWikwE8Ilbymh6vpa1I/XK2FaSrMF1qQlgVXdHM4wSpp NGTxO2PvVx2N6nBNi/ojDN8B5ao0KVVBt6SQ2qgnY7fzAEGIk8bvyNxr41o9daiQmFOw X3czlyCe2Tb0VGDrRCfhSLLLhg4chzQ8TzU7aLLpyJddhIx4EEyfBGZeEJkB2IIJIvuz 8reA== X-Forwarded-Encrypted: i=1; AJvYcCWVdOMPmnGiDtg225hHsH3KldXZItmKr08tgbVYDN8IovCGYfklvIEKoo6LAR3llH0VBblE7imTPYAh7DKq@lists.postgresql.org X-Gm-Message-State: AOJu0YyyLZnoOJU3CKCp3ENmGfI//nu4FNk7nFIijTzIBQudMjyikXy1 cvQWpCbuGpw7pJc/vg83BB/j6JD7cIVWwYn0f1vXODMxCeVhkGvnIkUUxxE2bw== X-Gm-Gg: ASbGnctn1hLNGMj07MrFJFLNCiOo0xQEhHta/UpyJB19Qu9Lbpp/8bjDNp+JLZWSyVJ sqB/iOvo+IXle1/75Ado7qfyM0d5VtT+JLXc9jMw2CNx8h2BVOeKa8QulnZmneDOhs0jVtBMZ3A wsHLrDmO46/MieFYd+QTrTJDxmsbaDwsMiLpQbYpr5MKYVwTcxwMvO3PlvUR5LmUvs8BWOP5V7p M5pQUJMYD6ugVgr1M2dVoIppoaF/JcKMbPzy0iPfzfC93s2Wsui4aAPlPgnJkxhbre3fW1IIgE5 eobBGvRtbNdGDoRB2jcknKi9QTNcwkYGT40nLIUcpfTYDzYeajkuYSKxoLZuhg5vNn1qBPl4yU+ thjjCDXt9d6Q= X-Google-Smtp-Source: AGHT+IHPTsGiU5sIlfVd749v0gJ0vB3K7nwku9iwS7UPKevxrdPLZS7wrBcFmHR8AkRJ8/lvgPphNA== X-Received: by 2002:a17:902:e5d2:b0:223:66bc:f1de with SMTP id d9443c01a7336-22428a9810dmr3819705ad.21.1741284466849; Thu, 06 Mar 2025 10:07:46 -0800 (PST) Received: from jeff-laptop.lan (c-76-102-242-158.hsd1.ca.comcast.net. [76.102.242.158]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22410a907adsm15458615ad.160.2025.03.06.10.07.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Mar 2025 10:07:46 -0800 (PST) Message-ID: <3774289ae94df1925506b3004ec2a0a510bf359e.camel@j-davis.com> Subject: Re: Statistics Import and Export From: Jeff Davis To: Andres Freund , Corey Huinker Cc: Nathan Bossart , Tom Lane , Michael Paquier , jian he , Bruce Momjian , Matthias van de Meent , Magnus Hagander , Stephen Frost , Ashutosh Bapat , Peter Smith , PostgreSQL Hackers , alvherre@alvh.no-ip.org Date: Thu, 06 Mar 2025 10:07:43 -0800 In-Reply-To: References: <6rpmhyrtci4epuzay7y5xvd2cwdwb6zmtt6ofxrvakyawxhm7s@6grajbpr4kij> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu2 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 2025-03-06 at 12:16 -0500, Andres Freund wrote: > I don't follow. We already have the tablenames, schemanames and oids > of the > to-be-dumped tables/indexes collected in pg_dump, all that's needed > is to send > a list of those to the server to filter there? Would it be appropriate to create a temp table? I wouldn't normally expect pg_dump to create temp tables, but I can't think of a major reason not to. If not, did you have in mind a CTE with a large VALUES expression, or just a giant IN() list? Regards, Jeff Davis