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 1khKp6-0007lF-45 for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Nov 2020 23:00:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1khKp2-0006Ls-FY for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Nov 2020 23:00:36 +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 1khKp2-0006Ll-8j for pgsql-hackers@lists.postgresql.org; Mon, 23 Nov 2020 23:00:36 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1khKoz-00043U-AK for pgsql-hackers@postgresql.org; Mon, 23 Nov 2020 23:00:35 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 063415F799; Mon, 23 Nov 2020 18:00:31 -0500 (EST) Date: Mon, 23 Nov 2020 18:00:31 -0500 From: Stephen Frost To: Tom Lane Cc: Justin Pryzby , 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_*) Message-ID: <20201123230031.GR16415@tamriel.snowman.net> References: <20200503024215.GJ28974@telsasoft.com> <20200526021003.GW4472@telsasoft.com> <20200622015325.GG17995@telsasoft.com> <20200715030839.GX23581@telsasoft.com> <20200718201532.GV23581@telsasoft.com> <20200908195126.GB18552@telsasoft.com> <20201028193402.GA28528@telsasoft.com> <129225.1606166058@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="aCRj88RjNmyNXF9k" Content-Disposition: inline In-Reply-To: <129225.1606166058@sss.pgh.pa.us> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --aCRj88RjNmyNXF9k Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Tom Lane (tgl@sss.pgh.pa.us) wrote: > Justin Pryzby writes: > >> This patch has been waiting for input from a committer on the approach= I've > >> taken with the patches since March 10, so I'm planning to set to "Read= y" - at > >> least ready for senior review. >=20 > I took a quick look through this. This is just MHO, of course: >=20 > * I don't think it's okay to change the existing signatures of > pg_ls_logdir() et al. Even if you can make an argument that it's > not too harmful to add more output columns, replacing pg_stat_file's > isdir output with something of a different name and datatype is most > surely not OK --- there is no possible way that doesn't break existing > user queries. I disagree that we need to stress over this- we pretty routinely change the signature of various catalogs and functions and anyone using these is already of the understanding that we are free to make such changes between major versions. If anything, we should be strongly discouraging the notion of "don't break user queries" when it comes to administrative and monitoring functions like these because, otherwise, we end up with things like the mess that is pg_start/stop_backup() (and just contrast that to what we did to recovery.conf when thinking about "well, do we need to 'deprecate' or keep around the old stuff so we don't break things for users who use these functions?" or the changes made in v10, neither of which have produced much in the way of complaints). Let's focus on working towards cleaner APIs and functions, accepting a break when it makes sense to, which seems to be the case with this patch (though I agree about using a TAP test suite and about performing the directory recursion in C instead), and not pull forward cruft that we then are telling ourselves we have to maintain compatibility of indefinitely and at the expense of sensible APIs. Thanks, Stephen --aCRj88RjNmyNXF9k Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJfvD8PAAoJEO1sijiDR2RVzuAQAJKfhtOWRGc5OD5/xuoGzaXE 4dIdrAgqtoQyUIWYbREC0H3HuTt8YDss7sdYibTLMhpng3Qde7Wu+jH97OCI2+ox i8EPkfMvgu7wFrOFhgVOW5vXcudJMOi6A0SlTxZTbeomSdlqZlxp3bCqE8olUteO q/pYAtUFvA61W0e1+4OP5Jyjp7wEEzfPNAKLAiTqJIAd9HSgE3hcRV5/wJVjs9hr VgBI1hqz3nxX5NOGxoZjn8BHOsrxFk5bZfkShB7wjZpxTdXBybsU0fPOltw2EhR4 bRR7IgTQ5eEFmo+bWmTMl8BUbNleDYFI8N8kUdABUalqdOoxS3uaPnY9rSoLyr3m kEs2oIPeBbI/o6lJKxow7ZTaP20tTXUlKmWUvMtReh291As8jLWY/ANmS+yUCX41 3keMh0g2b9MM/IzUKLm8XEhiebMStQywhC0V7gkgldpwX3x3d/jZV9+hLDej+nGO wWz0AfyQUneKOtNHqUpVkzQOjJyW+w6vwYMFr5g4v/UnKwiMHUKZ/2bvbJQ4BxNN 1/773SA75Aok3uZv+bWSbtdI6DJuDS6vu9XSxP8YDaVAI0B66O/xVnCy03sEMEVB nsGdXXKv8rKYDVQ8atCVInGPzua6JcxBriKVk03Hb1O7mADUeCK+0QU0l7ilhhwZ AclG0p8xHVQBCLnT4erD =SHY4 -----END PGP SIGNATURE----- --aCRj88RjNmyNXF9k--