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 1odc9t-0000YQ-NN for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Sep 2022 18:51: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 1odc8u-0007QQ-D5 for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Sep 2022 18:50:48 +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 1odc8u-0007QE-1V for pgsql-hackers@lists.postgresql.org; Wed, 28 Sep 2022 18:50:48 +0000 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1odc8n-0001Tv-EF for pgsql-hackers@postgresql.org; Wed, 28 Sep 2022 18:50:47 +0000 Received: by mail-pj1-x102b.google.com with SMTP id u59-20020a17090a51c100b00205d3c44162so3523256pjh.2 for ; Wed, 28 Sep 2022 11:50:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=xHVYWWzRnRk0kDOTd6s7jCCpKZmQS8ty/XSos+E6bUY=; b=juNYc4i1m84yapqczPA8oWZjZNP7zf5mEIQcrBL9RVrhgktRnG3Pc+KIvlil+0EQVz IfClZpWsX7D326wb7eOnPzbDXyU56EZ8gKsO4zQsDNaWBKxaGu13eREMVtjffh2lEF6V roqH3qtubGt1I1vW2HwWKDyInt1mSffi+9TcCEgcPjC2AkRAK4pj8vZ9RFlyrwSNL22G CMwoXzZtNNPHdgqcjxZp9Qins2jdCj5oU+2LG3ryX+T345tMAUtOG5YDilCpG1Q4PbBo +5nwb//ht9yFdY/8cRtwgphZ0+4vbvVHIuS9Az5Xpik/xRsGQwPJABM3U08vcO12rRM5 e2bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=xHVYWWzRnRk0kDOTd6s7jCCpKZmQS8ty/XSos+E6bUY=; b=AtWPYAbsAc+zLT3ExRFJzt9ps0zG239jBfHQjJ5b38lVz1lnwlfrj8J9U75mGXcjzJ kiGT408w5URMqLDTere9qh7MIjzUP67LjAsHMHeGZDh6MIPa4BQZ1VZQardMs/4DraWN q8rAamBDslvnr1kFS49o/fhhRo1V5XStpqHmBZH5Oc41HcPLHwtcxRzK5/UKoV+4XB4D I4MyZsQNzRfnFy1fAz6kwb2PFyKj1TQkHNLNBDWPpN31CDcMEXG78b8bYQSSn179HJUH HTvJu/mBAzElKgQ+ZzOTr6+bvrvTGtAQcUdwhoIw8JV7vSrddKtlS4nsVmpC2OsLcOiv RROg== X-Gm-Message-State: ACrzQf02Vk1Y3ZUGR9m9NzmgfTicHmDX05DAYswmngXT0LzFtqWqTCYK 9vwe3950WLv4qf5O9YWHZ2I= X-Google-Smtp-Source: AMsMyM4lRZ0DpbnUz6qDfYhBccEhTxujLik4amUKtef4/f8eYXh3f0yl7ZGpNh/YUCsMUW8x83xnTw== X-Received: by 2002:a17:903:186:b0:178:2ca7:fae5 with SMTP id z6-20020a170903018600b001782ca7fae5mr1110050plg.173.1664391040302; Wed, 28 Sep 2022 11:50:40 -0700 (PDT) Received: from nathanxps13 ([50.47.162.83]) by smtp.gmail.com with ESMTPSA id i5-20020a17090332c500b0017824e7065fsm4188423plr.180.2022.09.28.11.50.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Sep 2022 11:50:37 -0700 (PDT) Date: Wed, 28 Sep 2022 11:50:34 -0700 From: Nathan Bossart To: Michael Paquier Cc: Robert Haas , Stephen Frost , Bharath Rupireddy , "David G. Johnston" , Kyotaro Horiguchi , "pgsql-hackers@postgresql.org" Subject: Re: predefined role(s) for VACUUM and ANALYZE Message-ID: <20220928185034.GA1397229@nathanxps13> References: <20220907221103.GA2095022@nathanxps13> <20220920035147.GA114383@nathanxps13> <20220920180533.GA205278@nathanxps13> <20220920233117.GA378596@nathanxps13> <20220920235010.GB378596@nathanxps13> <20220921043126.GA382738@nathanxps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220921043126.GA382738@nathanxps13> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Sep 20, 2022 at 09:31:26PM -0700, Nathan Bossart wrote: > I bet a more pressing concern is the calls to aclmask() since checking > privileges is probably done more frequently than updating them. That > appears to use a linear search, too, so maybe sorting the aclitem arrays is > actually worth exploring. I still doubt there will be much noticeable > impact from expanding AclMode outside of the most extreme cases. I've been testing aclmask() with long aclitem arrays (2,000 entries is close to the limit for pg_class entries), and I haven't found any significant impact from bumping AclMode to 64 bits. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com