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 1v6gyt-008Fij-Ak for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Oct 2025 03:06:15 +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 1v6gyr-00F4vq-3d for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Oct 2025 03:06:14 +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 1v6gyq-00F4vg-MX for pgsql-hackers@lists.postgresql.org; Thu, 09 Oct 2025 03:06:13 +0000 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1v6gym-0019LP-2G for pgsql-hackers@postgresql.org; Thu, 09 Oct 2025 03:06:13 +0000 Received: by mail-pj1-x1034.google.com with SMTP id 98e67ed59e1d1-339e71ccf48so728116a91.3 for ; Wed, 08 Oct 2025 20:06:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20230601.gappssmtp.com; s=20230601; t=1759979166; x=1760583966; darn=postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=wh7YzHwIv/XTr0rVfpP/dV/fn/ByrIc8w/SbZixGXCg=; b=E3zIhM1wqRYUGpcKPvt5AkZMMHuWZOH8wf1x722Y5BrBxL6SqNeXcTtqPKBV4Gxi2X Q3PV99ItT84ICWHRh8fNZtx/lsj9UP1ZHIhuL3dO/z/Zzm8DUafd0JoC3SCQ8K5BrVbU NhvxIb/RM/91x7HyUIeJt/wgtAdhwXL0PeuGB601DsZ4L5FFCQQFi+I+oHjsjcGdzTWU 7k5EFjR3p+oL3GRjnj8vyHNAO/PnkUFdxmrTvw9cj7HsOt9ji+7hRO0txYzcTykCrLbQ hKsCLapwtHMpBL3pIUPMdDAaxjtX1Aze63FZb9BvLG6cBTKZYTR1673YDiPYu4HDlhtT OVIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759979166; x=1760583966; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=wh7YzHwIv/XTr0rVfpP/dV/fn/ByrIc8w/SbZixGXCg=; b=guxAfqqr5hcRGiOohf6s/zzXqDZP7rT0I4MDZbPNuurc5tbysM1baV53KvkEbbwt5o Q/Cra0eQe+m0Fe4OfZensVHCM0hKz7AG9rqiEaYNamxIhlewjEj3G+HRqzXWAwrzHjut mew81VY/Uqp7bypkomANGnurAyiotTPXgFLKmR8ux4+xOksTmyFK8YOvcSOxVp2561KE pUPWBxsDBMles9BRIhVsJ72YA2N9n1XaDHwRknzNq3xThwkmO305Kc3N2lN0w2mnc3nI LVcE5Yl6Q2dok2qyIfP19nrzB0u3HbnW4t16tCE+ztoPz+rtk67Z5i9sT3lbeNl7kmGG Fx/A== X-Forwarded-Encrypted: i=1; AJvYcCVnYcRH3QToS2o59cWCYVxmEzelfGtIfiDWAoeqcG8zDZcKJznCt+TV3RzvUTlXvJQ49OVy00r7Y1ypj1E6@postgresql.org X-Gm-Message-State: AOJu0YyayboEoBGAScaPUAZYja8jGdxFe0xRGaS7lK/lZJ5reMY5bhOB MLG0BfQnwAee52KWmLIAWsEPU2vtD6vNyQ0F6sWWLdJlUkVSgqSbgxP9Nl32Wso5tw== X-Gm-Gg: ASbGncvuP/+FNdSChsbnX9s+i52GnOWgL6LYsSCPraNGeyHgvJgnaB68CX1WyslsuXV 9i/MTsLdxtKhQPvfDGZaOohd0BpEh5yTGlTyT8azaN8RuGlMAuN8aN8VyjznlrIwm+yv/NYCp/t eNqzR1ewjrFxT/E2jomMCzesuvGOTYptV8m3QutC0/unxI5JHGTAZZiG/EjkTOxCDCAZIrFsBa9 gkBahskr2AqAAH014L9NtL4n/edFWd//uZvoYKU2idO3pHu3NV4s3rYM0/kh/KmWXA4lRkCOar3 T1fmG950xdqLXAyFSIJgU0o5TW7yApIIVLkx5ble1weOoVGR14ilWJsb6oahYiBtcgWY4gfwliU EJ1GtVrSw2qGbSRJ5cVbUrE5P2E5o129/XDEyARVp3pAS1v90jrMULoeo6qjaS4j6K2aGahcFHP m5OG49VFvyMo/xjLId+zG6QhJg X-Google-Smtp-Source: AGHT+IHJFdqTnZuCl8YQqk6AfVN3WjAmBIXRbm/qFtZj1jRBusRbxRPuam1GsHiuq/idBQwbHqyM2g== X-Received: by 2002:a17:90b:1c88:b0:330:a454:c31a with SMTP id 98e67ed59e1d1-33b51386573mr7777314a91.32.1759979165996; Wed, 08 Oct 2025 20:06:05 -0700 (PDT) Received: from jeff-ws-bridge.lan (c-24-7-19-3.hsd1.ca.comcast.net. [24.7.19.3]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-33b5114b61asm5112826a91.23.2025.10.08.20.06.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Oct 2025 20:06:05 -0700 (PDT) Message-ID: <8af53c6e8992aa706e63aafe60a3bcf100b524d1.camel@j-davis.com> Subject: Re: Clarification on Role Access Rights to Table Indexes From: Jeff Davis To: Nathan Bossart , Tom Lane Cc: Ayush Vatsa , Robert Haas , "David G. Johnston" , PostgreSQL Hackers Date: Wed, 08 Oct 2025 20:06:04 -0700 In-Reply-To: References: <149429.1741472260@sss.pgh.pa.us> <279947.1741535285@sss.pgh.pa.us> <3432170.1758730414@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.3-0ubuntu1 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2025-09-24 at 11:52 -0500, Nathan Bossart wrote: > On Wed, Sep 24, 2025 at 12:13:34PM -0400, Tom Lane wrote: > > Nathan Bossart writes: > > > * RangeVarCallbackForReindexIndex() was checking privileges on > > > the table > > > before locking it, so I reversed it in 0002. > >=20 > > Don't we do that intentionally, to make sure someone can't cause > > DOS > > on a table they have no privileges on? >=20 > Ah, right.=C2=A0 I switched it back in v4. v4-0001 looks good to me. Just to make sure I understand: the actual problem would only happen with OID wraparound, right? Regards, Jeff Davis