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 1twZFM-00FdKg-0Z for pgsql-general@arkaria.postgresql.org; Mon, 24 Mar 2025 04:17:08 +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 1twZFK-00C8SP-Ps for pgsql-general@arkaria.postgresql.org; Mon, 24 Mar 2025 04:17:06 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1twZFK-00C8SH-FV for pgsql-general@lists.postgresql.org; Mon, 24 Mar 2025 04:17:06 +0000 Received: from smtp120.iad3b.emailsrvr.com ([146.20.161.120]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1twZFI-000nFB-11 for pgsql-general@lists.postgresql.org; Mon, 24 Mar 2025 04:17:06 +0000 X-Auth-ID: xof@thebuild.com Received: by smtp24.relay.iad3b.emailsrvr.com (Authenticated sender: xof-AT-thebuild.com) with ESMTPSA id 1B4A140060; Mon, 24 Mar 2025 00:17:01 -0400 (EDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51.11.1\)) Subject: Re: Best way to check if a table is empty From: Christophe Pettus In-Reply-To: Date: Sun, 23 Mar 2025 21:16:31 -0700 Cc: Marcelo Fernandes , "pgsql-general@lists.postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: <8B07AFB5-2A14-4EA8-9DC7-DE939AF7762C@thebuild.com> References: To: "David G. Johnston" X-Mailer: Apple Mail (2.3776.700.51.11.1) X-Classification-ID: 4790feac-2296-46ae-a4d4-836b50e68d86-1-1 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Mar 23, 2025, at 21:15, David G. Johnston = wrote: >=20 > No idea if we take that shortcut. I remember looking into that not too long ago, and the answer's no.