Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jEHcT-0007XO-Fp for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Mar 2020 19:11:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jEHcS-0007kQ-6N for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Mar 2020 19:11:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jEHcR-0007kJ-Tk for pgsql-hackers@lists.postgresql.org; Tue, 17 Mar 2020 19:11:15 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jEHcL-0000yr-IT for pgsql-hackers@postgresql.org; Tue, 17 Mar 2020 19:11:15 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 02HJB1n9017989; Tue, 17 Mar 2020 15:11:01 -0400 From: Tom Lane To: Justin Pryzby cc: Fabien COELHO , Alvaro Herrera , David Steele , pgsql-hackers@postgresql.org, "Bossart, Nathan" , Thomas Munro Subject: Re: pg_ls_tmpdir to show directories and shared filesets (and pg_ls_*) In-reply-to: <20200317190401.GY26184@telsasoft.com> References: <20200316214806.GQ26184@telsasoft.com> <20200316221736.GA15635@alvherre.pgsql> <20200317031427.GU26184@telsasoft.com> <20200317190401.GY26184@telsasoft.com> Comments: In-reply-to Justin Pryzby message dated "Tue, 17 Mar 2020 14:04:01 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <17987.1584472261.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 17 Mar 2020 15:11:01 -0400 Message-ID: <17988.1584472261@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Justin Pryzby writes: > It seems like the only way to make variable number of arguments is is wi= th > multiple entries in pg_proc.dat, one for each "number of" arguments. Is= that > right ? Another way to do it is to have one entry, put the full set of arguments into the initial pg_proc.dat data, and then use CREATE OR REPLACE FUNCTION later during initdb to install some defaults. See existing cases in system_views.sql, starting about line 1180. Neither way is especially pretty, so take your choice. regards, tom lane