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 1qk6wI-00DG6J-Fw for pgsql-hackers@arkaria.postgresql.org; Sat, 23 Sep 2023 18:01:10 +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 1qk6vH-00HRWa-I7 for pgsql-hackers@arkaria.postgresql.org; Sat, 23 Sep 2023 18:00:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qk6vH-00HRVO-7j for pgsql-hackers@lists.postgresql.org; Sat, 23 Sep 2023 18:00:07 +0000 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qk6vE-0079mx-Om for pgsql-hackers@postgresql.org; Sat, 23 Sep 2023 18:00:06 +0000 Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2c123eed8b2so64890971fa.0 for ; Sat, 23 Sep 2023 11:00:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695492003; x=1696096803; darn=postgresql.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=2QWvqFZKzM2LzP11a3Speu8n+UooJS7N2WEpkuEPOO4=; b=ICrUlhYW/EaiKTfV592tuGR9765JXcJo+qM1stQP+IvwjGRBEEZ214HqXoBaGPdDnw GzrxPZfpsnbwdfvxPhmljCzM7yRDRyVcTPX7Mv8zm1TpdD6GQZTrSDukEN4zMsLCpxnT SdnAj7857R4f3jyRcA6R+Qn97gFQHbvHHt9cN0Wm+tVyWH07P9ZLdYGBKkG21a2SHlEy 3nMi9w6ZxDGBE5rRath2/aNLmuBSYs07UQeqhMCg9ueNfpx7ZMZcKVycTnK8UnZ+64JL Yk8DQQbacZkAU/GYhq99UTIJGL53Tuauro8fp8M7ZR4W8YF851kWWQPtF6Jbj9zrjWMi eILw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695492003; x=1696096803; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2QWvqFZKzM2LzP11a3Speu8n+UooJS7N2WEpkuEPOO4=; b=UmVagRhsA10NHou8+BNHLMkkcLFZtMKK9Vz41WUGZoeSAaE6mdVKcx/tUdMy2Ejm7s P2nycq0g22JcfMUEwz4ZxCa07apBEVtrUD7Q/pLNzoMLvc3yTbef5eDLa3eavqiuA87K t++tPHxsQXgZ+oIC/61tfd7n78JZ7K4Obuh80AFQg1lxUcRuyik7/dtIFxXP4YRmOP36 lyHrG4CKkL94dqQKTtx8nuc8BEwknoxnJEMgG1X3wVTo9V4GcUwKjGCYYQF2tSQP7umL OCXd8tyXQs4y+CF0pMhHPN41BGA9HIirg9shXz3bM0Oq6n9usJHIiZLo5dTTvKusrUSd 42Uw== X-Gm-Message-State: AOJu0YzZDqOvBEq/48OxoT85naOZOdBp72tsvRi420S5mGu3qwq+wc6F ZFdP/WG+tI6AF9nbbnza8Zzu37czgFIIdA== X-Google-Smtp-Source: AGHT+IGsulI9GEuCHsJIfvgdr2lU8jPIQiyFF/lgqfK9qCT/JkStQpdFFAPg6Xu19W8MabOEV9urCA== X-Received: by 2002:a2e:918d:0:b0:2c0:1d23:6598 with SMTP id f13-20020a2e918d000000b002c01d236598mr2250797ljg.30.1695492003161; Sat, 23 Sep 2023 11:00:03 -0700 (PDT) Received: from [1.0.0.7] ([81.23.165.104]) by smtp.gmail.com with ESMTPSA id d21-20020a2e8915000000b002c00c076840sm1430694lji.133.2023.09.23.11.00.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 23 Sep 2023 11:00:02 -0700 (PDT) Message-ID: <67793ae1-3adc-a6e0-0bb3-c23a28c0627a@gmail.com> Date: Sat, 23 Sep 2023 21:00:00 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: Should rolpassword be toastable? Content-Language: en-US To: Tom Lane Cc: pgsql-hackers References: <89e8649c-eb74-db25-7945-6d6b23992394@gmail.com> <1284094.1695479962@sss.pgh.pa.us> From: Alexander Lakhin In-Reply-To: <1284094.1695479962@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 23.09.2023 17:39, Tom Lane wrote: > I'm also now more than just slightly skeptical about whether > pg_database should have a toast table. Has anybody tried, > say, storing a daticurules field wide enough to end up > out-of-line? I tried, but failed, because pg_database accessed in InitPostgres() before assigning MyDatabaseId only via the function GetDatabaseTupleByOid(), which doesn't unpack the database tuple. Another access to a system catalog with unassigned MyDatabaseId might occur in the has_privs_of_role() call, but pg_auth_members contains no toastable attributes. So for now only pg_authid is worthy of condemnation, AFAICS. Best regards, Alexander