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 1nLpAn-00023k-Bi for pgsql-general@arkaria.postgresql.org; Sun, 20 Feb 2022 16:34:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nLpAm-0002OJ-7h for pgsql-general@arkaria.postgresql.org; Sun, 20 Feb 2022 16:34:56 +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 1nLpAl-0002OA-TX for pgsql-general@lists.postgresql.org; Sun, 20 Feb 2022 16:34:55 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nLpAe-0002Va-2S for pgsql-general@lists.postgresql.org; Sun, 20 Feb 2022 16:34:54 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 21KGYjEt279464; Sun, 20 Feb 2022 11:34:45 -0500 From: Tom Lane To: Julien Rouhaud cc: Markur Sens , pgsql-general Subject: Re: Additional accessors via the Extension API ? In-reply-to: <20220220103508.il2a3fpaeeys3mt3@jrouhaud> References: <6D4DE1F2-70C9-4BC4-92FD-0699BE0F8952@gmail.com> <20220220101257.dchizxpkang7vvq4@jrouhaud> <2C9AEE7B-89A0-49F6-AB28-F81AEC9B6078@gmail.com> <20220220103508.il2a3fpaeeys3mt3@jrouhaud> Comments: In-reply-to Julien Rouhaud message dated "Sun, 20 Feb 2022 18:35:08 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <279462.1645374885.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 20 Feb 2022 11:34:45 -0500 Message-ID: <279463.1645374885@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Julien Rouhaud writes: > On Sun, Feb 20, 2022 at 12:31:22PM +0200, Markur Sens wrote: >> Is this documented & expected behavior or it=E2=80=99s just happens to = work? > I don't think it's documented but it's an expected behavior, see > https://github.com/postgres/postgres/blob/master/src/backend/parser/pars= e_func.c#L57-L88 It is documented, near the bottom of this section: https://www.postgresql.org/docs/current/rowtypes.html#ROWTYPES-USAGE Other relevant oddities are mentioned in https://www.postgresql.org/docs/current/xfunc-sql.html#XFUNC-SQL-COMPOSITE= -FUNCTIONS regards, tom lane