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 1oPZ0h-0004fP-6v for pgsql-general@arkaria.postgresql.org; Sun, 21 Aug 2022 00:40:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oPYzg-0003Ky-Rz for pgsql-general@arkaria.postgresql.org; Sun, 21 Aug 2022 00:39:12 +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 1oPYzg-0003Kp-Hd for pgsql-general@lists.postgresql.org; Sun, 21 Aug 2022 00:39:12 +0000 Received: from smtp84.iad3b.emailsrvr.com ([146.20.161.84]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oPYza-00062i-VV for pgsql-general@lists.postgresql.org; Sun, 21 Aug 2022 00:39:12 +0000 X-Auth-ID: xof@thebuild.com Received: by smtp3.relay.iad3b.emailsrvr.com (Authenticated sender: xof-AT-thebuild.com) with ESMTPSA id D2E094006F; Sat, 20 Aug 2022 20:39:04 -0400 (EDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Subject: Re: With Recursive / Recursive View question From: Christophe Pettus In-Reply-To: <9F77CCA4-8039-435E-8166-7C7CBC90F39F@easesoftware.com> Date: Sat, 20 Aug 2022 17:38:04 -0700 Cc: pgsql-general list X-Mailbutler-Message-Id: 7CABD11C-9CDE-471D-A234-E9D4585D4882 Content-Transfer-Encoding: quoted-printable Message-Id: References: <9F77CCA4-8039-435E-8166-7C7CBC90F39F@easesoftware.com> To: Perry Smith X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Classification-ID: 88123718-e528-47a7-b343-96636968a582-1-1 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Aug 20, 2022, at 15:42, Perry Smith wrote: >=20 > To rephrase, is it possible to write a view that would work from the = child terms out towards the ancestors? Assuming that the concern is that you want to parameterize this = predicate: WHERE basename =3D '10732.emlx' ... you might consider an SQL function taking basename as a parameter.=