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 1jwtFM-0001zX-Ou for pgsql-hackers@arkaria.postgresql.org; Sat, 18 Jul 2020 20:15:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jwtFK-0003Le-Ms for pgsql-hackers@arkaria.postgresql.org; Sat, 18 Jul 2020 20:15:46 +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 1jwtFK-0003DP-5p for pgsql-hackers@lists.postgresql.org; Sat, 18 Jul 2020 20:15:46 +0000 Received: from mail-io1-xd42.google.com ([2607:f8b0:4864:20::d42]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jwtFC-0006tl-Ph for pgsql-hackers@postgresql.org; Sat, 18 Jul 2020 20:15:42 +0000 Received: by mail-io1-xd42.google.com with SMTP id v8so13823212iox.2 for ; Sat, 18 Jul 2020 13:15:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=sq0LPxt5lzUqCP/2BsL4N+I9r+rZvLjig0BHmNOozGA=; b=YpCH4s2POJb3/J3M/m7lAXoa80XY9I+WUAkvfIyJQCcfbcaWb2q5stc+7fi3iCNG6p QaZoj4ueARY+P3PJEyEgkYLx4P4+V6PM/yGzuh7d8CQz59Ojxd0LDwfR9zK3yimJzj8n MsEWS9oXJNZOP8L0HPBXzkjx3j33frqGKWueBw0a25PKHgnrudNlMrQPRoKzkrjiSq/0 gbSEDvnL+R+s1dcm5Mtj7ASiqCDvFo6Tr56VeOMyavmhJPXDpcHVq9nglZv4kq/tepmz 9ldwQFKatoIawPdEKkKMCkOC78JurCXwEeRaJ/du8hWCGs/gTC54fNN1bP+mcOAx7MDE aTCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=sq0LPxt5lzUqCP/2BsL4N+I9r+rZvLjig0BHmNOozGA=; b=QMBrxECG7GlO1Bapo0YRGk/yON6XaztvSVq0QOCmD7xFELNo5xBYQP4lF7JbFap+vu iXu2V9PKPldd+1bAe2BiYKvt2ZZZu48dod4h9cKqS2Q+4p3i01SIBI9Bc/+gfX5XRvnw KJUmS2pH8sBeaUF5hh25EPxE7ZliVHloqXJfX6Hkg0ky6mM8lr4L0csnIE6ubfwJYSzL ttOW9IVrucwfGFvnizjWqXXGhxSi1/QdXz3D66eVLwhxtP1pnjjZRS/oEO6oN78qPOh7 x5q+qI9yq9B+pRd2HhBWkGk1k/QIJzK0SbdA9SAMb0OC2fjftfOnIq84DyEgdHV6OCla D7Bg== X-Gm-Message-State: AOAM532o/d9p8vHVoMQCHSXUWtJKOT1bRVcpoSOD01jsVFC/56oZOjbM iBPPxkGSiO4tLR/CDFUWpKck9Q== X-Google-Smtp-Source: ABdhPJxQcTNEO/IRGtJGsnoJivVP77wlQlCyxCcz3Az2JENO3Dwpok4qWWtpgIEeA32Bs7yIY+WQsw== X-Received: by 2002:a02:1c02:: with SMTP id c2mr17297377jac.102.1595103336630; Sat, 18 Jul 2020 13:15:36 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id u62sm6403049ilc.87.2020.07.18.13.15.34 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Jul 2020 13:15:35 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 063EE800C6F; Sat, 18 Jul 2020 15:15:32 -0500 (CDT) Date: Sat, 18 Jul 2020 15:15:32 -0500 From: Justin Pryzby To: Fabien COELHO Cc: Alvaro Herrera , David Steele , pgsql-hackers@postgresql.org, "Bossart, Nathan" , Thomas Munro , Tom Lane Subject: Re: pg_ls_tmpdir to show directories and shared filesets (and pg_ls_*) Message-ID: <20200718201532.GV23581@telsasoft.com> References: <20200317031427.GU26184@telsasoft.com> <20200317190401.GY26184@telsasoft.com> <20200331200812.GI14618@telsasoft.com> <20200503024215.GJ28974@telsasoft.com> <20200526021003.GW4472@telsasoft.com> <20200622015325.GG17995@telsasoft.com> <20200715030839.GX23581@telsasoft.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="Tcb1KvpfnM4LxW2s" Content-Disposition: inline In-Reply-To: <20200715030839.GX23581@telsasoft.com> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Tcb1KvpfnM4LxW2s Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jul 14, 2020 at 10:08:39PM -0500, Justin Pryzby wrote: > I'm still missing feedback from committers about the foundation of this > approach. Now rebased on top of fix for my own bug report (1d09fb1f). I also changed argument handling for pg_ls_dir_recurse(). Passing '.' gave an initial path of . (of course) but then every other path begins with './' which I didn't like, since it's ambiguous with empty path, or .// or ././ ... And one could pass './' which gives different output (like ././). So I specially handled the input of '.'. Maybe the special value should be NULL instead of ''. But it looks no other system functions are currently non-strict. For pg_rewind testcase, getting the output path+filename uses a coalesce, since the rest of the test does stuff like strcmp("pg_wal"). Still waiting for feedback from a committer. -- Justin --Tcb1KvpfnM4LxW2s Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="v21-0001-Document-historic-behavior-of-links-to-directori.patch"