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 1ooDOH-00030s-Nx for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Oct 2022 00:38:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ooDOG-00024U-B4 for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Oct 2022 00:38:28 +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 1ooDOF-00024K-PL for pgsql-hackers@lists.postgresql.org; Fri, 28 Oct 2022 00:38:28 +0000 Received: from mail-io1-xd2b.google.com ([2607:f8b0:4864:20::d2b]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ooDO7-0007Nd-Dn for pgsql-hackers@postgresql.org; Fri, 28 Oct 2022 00:38:27 +0000 Received: by mail-io1-xd2b.google.com with SMTP id n191so3364707iod.13 for ; Thu, 27 Oct 2022 17:38:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=I2Ktc1Ojr8JgiSxLJZKomViDvc2X32RjczeAbTVkKsg=; b=pNKODGOseDa8QWeB2Zhpq0CMGiJfaHMDVOLJCvpK/Yu7QmttjR+isKCEeKzuXaRDKG dEHKauriIKq1FzSqkn7YqOskYM3mLkDxy+JlNRLnDfjqtRAWtOUsMSNbmAPQGF4TzAlW ac+sBSofQ1mBVBpnpsiunbkPB+AVNzDsCUjWz1DyRsgVYxQMedlgfCvOpSySl43Lj0DU Gf0V2ZWcFFcqYk+eDX24UVpRP05Ozl5aY8dNPsqF/TN95CQ5pkvrvW01KXBf7Pn354qT Y0PhMn5J9LnFhX6/gukO3Ovqm0nBVtRRmfzrDRzI4SLDxojlMG5q4irB4kSf6Dd8rpB3 5YAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=I2Ktc1Ojr8JgiSxLJZKomViDvc2X32RjczeAbTVkKsg=; b=H7zeGGWarhuVg4amVrWXI3Lo23cQaaio/hEF56WBhm2lbsJqBnlsXWTxDpiDuUvR2a uiCzdKLbvMufLZodDPIcvhonwfmx46FqLaIZhchPid3bUCIgz9LHGzt5BYNXjxj65dAC y6lEIVDyPnwjWB0U+itdSgXzqrDsMAKn+2ItkvwxRsxIWYwlisyI6yRIyUeieJsBA9S0 /sSUtAVSTE1/KQftR+53d3T08CObWfhYeivkjyY3RmTdupgMshM8MDZA35r8YBR2iMF3 kcZurh5dZ1LFJ1uUMNWs97LV7SyddCyZl1u6GkqHCk5H0A8VdXx6Y/B8YjJWi4UZn8zN A5uQ== X-Gm-Message-State: ACrzQf3o+6Lvds6Sf5lSfMidxlxS3m9EbRDvgM/K6jK+gAb79wNXOBz3 YoTgUAnZEkc4Rx1MZ95B3gpGuw== X-Google-Smtp-Source: AMsMyM6Pjc6WXR0LyB9KQLiOS0CRyG+twMgFZCfJ+53gWIZaUyR2AtJl8wYeioRfqV5XF3x2yQwEjA== X-Received: by 2002:a05:6602:2d41:b0:6bc:d62d:4124 with SMTP id d1-20020a0566022d4100b006bcd62d4124mr31754864iow.142.1666917497497; Thu, 27 Oct 2022 17:38:17 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id f13-20020a02a04d000000b00372d05cab42sm1188861jah.23.2022.10.27.17.38.16 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Oct 2022 17:38:16 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id A2F41800C48; Thu, 27 Oct 2022 19:38:15 -0500 (CDT) Date: Thu, 27 Oct 2022 19:38:15 -0500 From: Justin Pryzby To: Fabien COELHO , Tom Lane , Stephen Frost Cc: pgsql-hackers@postgresql.org, "Bossart, Nathan" , Thomas Munro , Alvaro Herrera , David Steele Subject: Re: pg_ls_tmpdir to show directories and shared filesets (and pg_ls_*) Message-ID: <20221028003815.GG16921@telsasoft.com> References: <20220125192755.GK23027@telsasoft.com> <20220624043549.GC22452@telsasoft.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="Pk/CTwBz1VvfPIDp" Content-Disposition: inline In-Reply-To: <20220624043549.GC22452@telsasoft.com> 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 --Pk/CTwBz1VvfPIDp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Dec 13, 2019 at 03:03:47PM +1300, Thomas Munro wrote: > > Actually, I tried using pg_ls_tmpdir(), but it unconditionally masks > > non-regular files and thus shared filesets. Maybe that's worth > > discussion on a new thread ? > > > > src/backend/utils/adt/genfile.c > > /* Ignore anything but regular files */ > > if (!S_ISREG(attrib.st_mode)) > > continue; > > +1, that's worth fixing. @cfbot: rebased on eddc128be. --Pk/CTwBz1VvfPIDp Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="v37-0001-Document-historic-behavior-of-links-to-directori.patch"