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 1nTCWs-00033K-L8 for pgsql-hackers@arkaria.postgresql.org; Sun, 13 Mar 2022 00:56:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nTCWr-0005W1-8O for pgsql-hackers@arkaria.postgresql.org; Sun, 13 Mar 2022 00:56:13 +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 1nTCWq-0005Vs-Qd for pgsql-hackers@lists.postgresql.org; Sun, 13 Mar 2022 00:56:12 +0000 Received: from mail-io1-xd36.google.com ([2607:f8b0:4864:20::d36]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nTCWj-0006g9-Fp for pgsql-hackers@postgresql.org; Sun, 13 Mar 2022 00:56:12 +0000 Received: by mail-io1-xd36.google.com with SMTP id x4so14302587iom.12 for ; Sat, 12 Mar 2022 16:56:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=a3Klx0UdzdeP53t4gI4HzM679fauKPrSMB+MN0mfneU=; b=oPZJo1iQGFMBN9Cx2VQjOKfKZXrh/d67aX2RnnedMyrHiWQ9+kXG/s96mQbhGgowF0 jbisayicEM6wKa6Gt8imysLIMefKWU1Rn7wLua6D+7eljx8szIDEzwbwmZD6YeJWuubE lzpn7hWJweHDF1kzG62vmaUhZoRDNQULloZ1+41apatNMK4ns6IJbaIJbF1zn/tGKpQ0 KvCTKd1p5qw8lWQv76nmGzgf8N828I3NS8HXG2E8iH8OIWuricTOs2mJTfPncdz1PoFp Je2J/tnhzmzhyH8ExrvXQQUcfwj5zTYy1iGDounVXZA4of692NVHDuagl+lE/I62fKsK QuoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=a3Klx0UdzdeP53t4gI4HzM679fauKPrSMB+MN0mfneU=; b=m5uT8H0MyDq1sTfaO1NUFYumK0HdL33GfublIfZi+spr+Tnx03bDTnzamMZ6aSUK+W 4l/uFpsblxFOvbSsBX1J0UQdC/XOgh+GIIePwvneAhkDSBJdlDX+k73ztDXPk+x7ZxdS q32UTe24PP/tdMAixlE8k+t8i3synVX7ImZdYuNsedDOOvSnrTWLJ4J3Imwtvr3hew0c C69tDJ10XrZWRVfC8qYyM7FZbuSpYKpxZxlYX8OuHqs9aU0lYbcVfmVKVmwX7RgHSYJ1 jKwh1Hp+nkj+oA1tStKZ9K7s+v39ZyymsKq5F/L6QdpVIrrw5GT3Y2XtdhfZzBIBERQx 7Zvg== X-Gm-Message-State: AOAM532kW/P6ou6ksuyV62YgqlSbBg3TrF+dLx9tBaQrZIPIEKlSrx7n yW4XaIjg8A4d16rHt24p8g0/XA== X-Google-Smtp-Source: ABdhPJxhitQnHco0duqvBDisbBzgCDpQVCqI/0nY2tP14rJYVS5inzpQaYNNcpWoyRER5kOFfavp5g== X-Received: by 2002:a05:6638:156:b0:314:f997:baad with SMTP id y22-20020a056638015600b00314f997baadmr14854377jao.156.1647132963294; Sat, 12 Mar 2022 16:56:03 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id h12-20020a056e021b8c00b002c76e6682dasm4387782ili.19.2022.03.12.16.56.02 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 12 Mar 2022 16:56:02 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id EDBF58008B3; Sat, 12 Mar 2022 18:56:01 -0600 (CST) Date: Sat, 12 Mar 2022 18:56:01 -0600 From: Justin Pryzby To: Michael Paquier Cc: Fabien COELHO , "Bossart, Nathan" , Tom Lane , Stephen Frost , Alvaro Herrera , David Steele , pgsql-hackers@postgresql.org, Thomas Munro Subject: Re: pg_ls_tmpdir to show directories and shared filesets (and pg_ls_*) Message-ID: <20220313005601.GR28503@telsasoft.com> References: <20210406160131.GA6592@telsasoft.com> <20210702191637.GV21248@telsasoft.com> <2AF5FE35-82CB-4259-BF97-30D947803132@amazon.com> <20211124000444.GX17618@telsasoft.com> <20211223173631.GE17618@telsasoft.com> <20220125192755.GK23027@telsasoft.com> <20220309165044.GB27651@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun, Mar 13, 2022 at 09:45:35AM +0900, Michael Paquier wrote: > On Wed, Mar 09, 2022 at 10:50:45AM -0600, Justin Pryzby wrote: > > Rebased over 9e9858389 (Michael may want to look at the tuplestore part?). > > Are you referring to the contents of 0003 here that changes the > semantics of pg_ls_dir_files() regarding its setup call? Yes, as it has this: - SetSingleFuncCall(fcinfo, SRF_SINGLE_USE_EXPECTED); ... - SetSingleFuncCall(fcinfo, 0); ... + if (flags & LS_DIR_METADATA) + SetSingleFuncCall(fcinfo, 0); + else + SetSingleFuncCall(fcinfo, SRF_SINGLE_USE_EXPECTED); -- Justin