Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1srW7y-002Ijm-24 for pgsql-hackers@arkaria.postgresql.org; Fri, 20 Sep 2024 05:24:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1srW7u-00Fdxo-LP for pgsql-hackers@arkaria.postgresql.org; Fri, 20 Sep 2024 05:24:19 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1srW7t-00Fdxg-Cu for pgsql-hackers@lists.postgresql.org; Fri, 20 Sep 2024 05:24:19 +0000 Received: from fhigh1-smtp.messagingengine.com ([103.168.172.152]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1srW7r-0007X3-Tt; Fri, 20 Sep 2024 05:24:17 +0000 Received: from phl-compute-11.internal (phl-compute-11.phl.internal [10.202.2.51]) by mailfhigh.phl.internal (Postfix) with ESMTP id 5730D1140135; Fri, 20 Sep 2024 01:24:14 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-11.internal (MEProxy); Fri, 20 Sep 2024 01:24:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1726809854; x=1726896254; bh=O9iaqrt6yM UHFuj+5QX1vaK/jJBqsul8NNrKbwz3swI=; b=2JEhAu8T83NrIQ5uO2IBvsPfV1 Jj3Hii9clAEvMwqUg6JDOD036pQ7iCIOp4KPyAXQ7jMyPoe1s/Woxbnf+047//pw cnkdrVajhc1dGc7ijQxDDfaQltiNMsJAzhY8ShTpRLh4E8ff1BMMA8tTWbwcysYe tG8jR6if6hf2MYi5sDjYJEl0SqY0FcRmnjkA9Jo2tItHvUha1srKTZVbJfndR4fF FoBRP4ew/pHSHV2JyKKudy8zCtrFbqlw3xPk98mzb1jYogQ/mYaMpp3FNl0/Z+F8 CzRg16ZBYQj1bBmO/l0y6I6u/HtvG8p7UVaSI0pnpfWNTGRq+Wc0nkHGLqFA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1726809854; x=1726896254; bh=O9iaqrt6yMUHFuj+5QX1vaK/jJBq sul8NNrKbwz3swI=; b=NjYagMzoWa+6aLGXB9CCWg0s+GsPU6ZTo6OclBtShw31 dtk3MbII4EEs36zjPZEl3VnE/afWwSAyhCoR0Xw0MtxHPEqffJNV9rlF7uqNiLJS FPz8B5Ve8IPChrh9yc6aeWGpZ9kOlNJY4ZQrzMzeYNI1jWIODqa64o9UIqiek7o0 koeIS/3Rz8iwAR8f2pnFbl8f07W9VzBaA1hLU60vZFGuNSlS363J3YdXl6yPqw4M USrxMDEUOrOY8Gyp+I06r3QwGaqFpY/uWs8pGcneWnWS1uF9rD7T8WDxgLCMY+DG WxlZ2ew7v0cApot0pO4ECRfkeVyNgnAwJ4/Cb3IowA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudelvddgleejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnegfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhf gggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruc eomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteel ieefudffhffhtdetleeggeegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhes phgrqhhuihgvrhdrgiihiidpnhgspghrtghpthhtohephedpmhhouggvpehsmhhtphhouh htpdhrtghpthhtohepnhgrthhhrghnuggsohhsshgrrhhtsehgmhgrihhlrdgtohhmpdhr tghpthhtohepjhhkrghtiiesphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtohepth hglhesshhsshdrphhghhdrphgrrdhushdprhgtphhtthhopegvgigtlhhushhiohhnsehg mhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrshesphhoshhtgh hrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 20 Sep 2024 01:24:12 -0400 (EDT) Date: Fri, 20 Sep 2024 14:23:58 +0900 From: Michael Paquier To: Nathan Bossart Cc: "Jonathan S. Katz" , Tom Lane , Alexander Lakhin , pgsql-hackers Subject: Re: Should rolpassword be toastable? Message-ID: References: <1284094.1695479962@sss.pgh.pa.us> <67793ae1-3adc-a6e0-0bb3-c23a28c0627a@gmail.com> <1986859.1726756275@sss.pgh.pa.us> <2047353.1726784074@sss.pgh.pa.us> <0a9b7f96-aa2f-41eb-8e69-62f7990ebf74@postgresql.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="CcpU2iR/nyzAsL1L" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --CcpU2iR/nyzAsL1L Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 19, 2024 at 09:46:00PM -0500, Nathan Bossart wrote: > On Thu, Sep 19, 2024 at 07:37:55PM -0400, Jonathan S. Katz wrote: >>> Shouldn't we enforce the limit in every case in encrypt_password, >>> not just this one? (I do agree that encrypt_password is an okay >>> place to enforce it.) >=20 > Yeah, that seems like a good idea. I've attached a more fleshed-out patch > set that applies the limit in all cases. Not sure. Is this really something we absolutely need? Sure, this generates a better error when inserting a record too long to pg_authid, but removing the toast relation is enough to avoid the problems one would see when authenticating. Not sure if this argument is enough to count as an objection, just sharing some doubts :) Removing the toast relation for pg_authid sounds good to me. > -- These are the toast table and index of pg_authid. > -REINDEX TABLE CONCURRENTLY pg_toast.pg_toast_1260; -- no catalog toast t= able > +REINDEX TABLE CONCURRENTLY pg_toast.pg_toast_1262; -- no catalog toast t= able > ERROR: cannot reindex system catalogs concurrently > -REINDEX INDEX CONCURRENTLY pg_toast.pg_toast_1260_index; -- no catalog t= oast index > +REINDEX INDEX CONCURRENTLY pg_toast.pg_toast_1262_index; -- no catalog t= oast index This comment should be refreshed as of s/pg_authid/pg_database/. -- Michael --CcpU2iR/nyzAsL1L Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmbtBu4ACgkQnvQgOdby QH05DA/+KBGs+pUnTy7TSpC3QYnqQq45JpFClgHD6H1Cr2zQrVNXSSfF48N5YZQz l9HfFN/r5kvax0/Y4zrjG/wt69I60jibV888kqdopRlVGQ+gYHZOL3Bp5Qcs2yot lHhcJ5gXVhj7ulzCOYd6GjT1Nas/NAfvIt0NfURU3AsY3vTiteNxIpWdPgcYg4sD r5FVF47mFSv5fRbjhz2a5q+EZvwR+yWkFGHKN2lQmiAtlnx7uY6t0CCH3WZ1osLk Vt9sQbMgrORR1W9szEuxjzzrU4mZ/p2aIMMEVuHN0PxU1LOLfp/DeLpUO05wHjqm GCsDkZmg+RWGPCEzxKIRiIYGOXfnzBpPP3PPWO1UDrTp4LCYnSC7vTvjN3tvRQge 2Cm8c2gnUbHcHqnxG1dzolcs0H8CnKgFfBrT+65yte04tHUm9xnPhdZ4gZkx6vIf Q6+VoOgTatMQf4Ss/2kHgrFpP/uxCVuD4TEVlnQ+yBrdQ/jqFy3NBOUgbre1nsFw 3I2YsEWOn/x5ZR9cGM4pfXjXay3jY96Zy7tXnKWgRM9EagKltd4/Gj3MPSPmZTw6 NOrfzdSMpwnFGcS+5x75JGJpP2lfiG4LjwZgc3ecL2197IeSieDYhu04TYNooKn7 acoKhNBO5XJiihtcjMdKyLvaZ5n2P75nCzNuRk5xjXn9Y0I0Y1w= =7Msm -----END PGP SIGNATURE----- --CcpU2iR/nyzAsL1L--