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 1jsyYI-0003Dq-HC for pgsql-admin@arkaria.postgresql.org; Wed, 08 Jul 2020 01:07:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jsyYH-0006G4-A6 for pgsql-admin@arkaria.postgresql.org; Wed, 08 Jul 2020 01:07:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jsyYH-0006Fx-1D for pgsql-admin@lists.postgresql.org; Wed, 08 Jul 2020 01:07:09 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jsyYE-00017w-C7 for pgsql-admin@lists.postgresql.org; Wed, 08 Jul 2020 01:07:08 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 2216BA0510; Wed, 8 Jul 2020 01:07:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo05-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo05-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3nfa4f65t57S; Wed, 8 Jul 2020 01:07:04 +0000 (UTC) Received: from shr-macbook-pro.local (unknown [4.28.96.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 17701A04F1; Wed, 8 Jul 2020 01:07:00 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: SELECTing from a function where i don't want the results From: Scott Ribe In-Reply-To: Date: Tue, 7 Jul 2020 19:06:59 -0600 Cc: Ron , pgsql-admin@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <911059a0-d138-7ea3-044e-0d7ca71755a2@gmail.com> To: Wells Oliver X-Mailer: Apple Mail (2.3608.80.23.2.2) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Jul 7, 2020, at 6:48 PM, Wells Oliver = wrote: >=20 > Yes: it returns one row per record for deletion with a deleted row = count, and is called for hundreds (sometimes thousands) of records. Why not write a function that works the way you want?=