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 1oW2Mr-0004h8-Dv for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Sep 2022 21:13:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oW2Mq-00027h-86 for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Sep 2022 21:13:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oW2Mp-00027Y-U1 for pgsql-hackers@lists.postgresql.org; Wed, 07 Sep 2022 21:13:51 +0000 Received: from tamriel.snowman.net ([70.109.60.50]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oW2Mj-0007GX-76 for pgsql-hackers@postgresql.org; Wed, 07 Sep 2022 21:13:50 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 366BE5F79D; Wed, 7 Sep 2022 17:13:44 -0400 (EDT) Date: Wed, 7 Sep 2022 17:13:44 -0400 From: Stephen Frost To: Nathan Bossart Cc: Robert Haas , "David G. Johnston" , Kyotaro Horiguchi , Bharath Rupireddy , "pgsql-hackers@postgresql.org" Subject: Re: predefined role(s) for VACUUM and ANALYZE Message-ID: <20220907211343.GE26002@tamriel.snowman.net> References: <20220725164049.GA4091959@nathanxps13> <20220726.104712.912995710251150228.horikyota.ntt@gmail.com> <20220823234647.GB31055@tamriel.snowman.net> <20220905185630.GA1961927@nathanxps13> <20220906151151.GB26002@tamriel.snowman.net> <20220906155432.GA1963795@nathanxps13> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="3O1VwFp74L81IIeR" Content-Disposition: inline In-Reply-To: <20220906155432.GA1963795@nathanxps13> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --3O1VwFp74L81IIeR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Nathan Bossart (nathandbossart@gmail.com) wrote: > On Tue, Sep 06, 2022 at 11:24:18AM -0400, Robert Haas wrote: > > On Tue, Sep 6, 2022 at 11:11 AM Stephen Frost wrot= e: > >> If we were to make the specific bits depend on the object type as I'm > >> suggesting, then we'd have 8 bits used for relations (10 with the vacu= um > >> and analyze bits), leaving us with 6 remaining inside the existing > >> uint32, or more bits available than we've ever used since the original > >> implementation from what I can tell, or at least 15+ years. That seems > >> like pretty darn good future-proofing without a lot of complication or > >> any change in physical size. We would also be able to get rid of the > >> question of "well, is it more valuable to add the ability to GRANT > >> TRUNCATE on a relation, or GRANT CONNECT on databases" or other rather > >> odd debates between ultimately very different things. > >=20 > > I mostly agree with this. I don't think it's entirely clear how we > > should try to get more bits going forward, but it's clear that we > > cannot just forever hold our breath and refuse to find any more bits. > > And of the possible ways of doing it, this seems like the one with the > > lowest impact, so I think it likely makes sense to do this one first. >=20 > +1. My earlier note wasn't intended to suggest that one approach was > better than the other, merely that there are a couple of options to choose > from once we run out of bits. I don't think this work needs to be tied to > the VACUUM/ANALYZE stuff, but I am interested in it and hope to take it on > at some point. I disagree that we should put the onus for addressing this on the next person who wants to add bits and just willfully use up the last of them right now for what strikes me, at least, as a relatively marginal use case. If we had plenty of bits then, sure, let's use a couple of for this, but that isn't currently the case. If you want this feature then the onus is on you to do the legwork to make it such that we have plenty of bits. My 2c anyway. Thanks, Stephen --3O1VwFp74L81IIeR Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJjGQmHAAoJEO1sijiDR2RVYz4P/1V9AmIKMQ2hjDfDHrVrFJvI DAT8hD4iFv6pE6l8ESFhpDf59wA6h3DDuNhWp4Qzrm1Zee+4kVlDodH1tM1N95sO BM6yNaueHOkS8dUz7e31E3FUt8aRdweuCabBUHNEHmlGoWy+f26pN1Oy3dUIr2d8 wfMC5c+agFOwPJZEd6I2wp4wJYU94AyaKGsrndQlv3B3k7IvhLP3e6SPZ6Cgik2e FHfrWSfHa/PsE8T9BNaosKP15G7YbtQAKCOHy0CcqGuu8QPYo8pinqn+G53BemME MLX7cmcJ9LSOQhs20J8DwmwsEiLqov1h4WEADilBOest2avABBNg/PYjwbwDHmQq KRa4ImkltebAodQa7MTNBkA6OuvdNqXJZGbH7c9Xme8CuDB/HD1ZPI1WN5OWj83W VUK8ivdYVdSUX8rCasOXnke+wskppEOOMTs4kYP/PIlw1FhVE68+kGdH9TDX3lZ+ gPsxaZ8HvQhCPiKqnqlcemhosi6dyQcUiyJzwTTVrEHkvxwqktjZ5cxpNse14nxe b5ABCylheyky5MUyR/Q8a7gB34IZfrpuuPBUcoijntf3RmoI5JqliFu8Y9EldfeZ R9J9MWCW6UB99sn2MgeyfoMykJbRXXqdvMOZo4a/DS2lSYl/hlVGUXl1xaX0/LwN Lx1TvfJm/ZCcXHd/3O3g =z+zw -----END PGP SIGNATURE----- --3O1VwFp74L81IIeR--