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 1tDUAB-0012pF-9p for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Nov 2024 19:45:27 +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 1tDUA9-00GbZa-SO for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Nov 2024 19:45:25 +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 1tDUA9-00GbZS-IU for pgsql-hackers@lists.postgresql.org; Tue, 19 Nov 2024 19:45:25 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tDUA3-002nod-0M for pgsql-hackers@lists.postgresql.org; Tue, 19 Nov 2024 19:45:24 +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 4AJJjGTl3797607; Tue, 19 Nov 2024 14:45:16 -0500 From: Tom Lane To: Pavel Stehule cc: Michel Pelletier , pgsql-hackers@lists.postgresql.org Subject: Re: Using Expanded Objects other than Arrays from plpgsql In-reply-to: References: <1342498.1729444411@sss.pgh.pa.us> <1445998.1729482404@sss.pgh.pa.us> <2062830.1729625620@sss.pgh.pa.us> <2265411.1729699470@sss.pgh.pa.us> <2354718.1729737539@sss.pgh.pa.us> <2581216.1729794746@sss.pgh.pa.us> <1948345.1730500073@sss.pgh.pa.us> Comments: In-reply-to Pavel Stehule message dated "Tue, 19 Nov 2024 19:44:49 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <3797605.1732045516.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Tue, 19 Nov 2024 14:45:16 -0500 Message-ID: <3797606.1732045516@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Pavel Stehule writes: > Ășt 19. 11. 2024 v 18:51 odesĂ­latel Michel Pelletier < > pelletier.michel@gmail.com> napsal: >> A couple years ago I tried to compress what I learned about expanded >> objects into a dummy extension that just provides the necessary >> boilerplate. It wasn't great but a start: >> https://github.com/michelp/pgexpanded >> Pavel Stehule indicated this might be a good example to put into contrib: > another position can be src/test/modules - I think so your example is > "similar" to plsample Yeah. I think we've largely adopted the position that contrib should contain installable modules that do something potentially useful to end-users. A pure skeleton wouldn't be that, but if it's fleshed out enough to be test code for some core features then src/test/modules could be a reasonable home. regards, tom lane