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 1nw3ns-0005gP-Py for pgsql-bugs@arkaria.postgresql.org; Tue, 31 May 2022 15:29:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nw3nr-0001z5-LM for pgsql-bugs@arkaria.postgresql.org; Tue, 31 May 2022 15:29:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nw3nr-0001yU-Bq for pgsql-bugs@lists.postgresql.org; Tue, 31 May 2022 15:29:03 +0000 Received: from mail-oa1-x34.google.com ([2001:4860:4864:20::34]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nw3no-0001Mz-FU for pgsql-bugs@lists.postgresql.org; Tue, 31 May 2022 15:29:02 +0000 Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-f3381207a5so7553645fac.4 for ; Tue, 31 May 2022 08:29:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=xFIinETH5/r87cSSufWLOfsswA39begViRr+Vs5MftA=; b=EQKUCyOCsYz6UVA8Z47tPpZTVwlSVzjW71mPz3KChurEROvxYTqcoFg+c4qDavTC+s 1RdQlGvbMXAhPSZuzMVFWcQBw6tS78lTJ39vyPEybD0mfdN95BQ/4ngjMNydycwhGCwx e75wulxvEPWm1dYtWTMjT+LYeDWk31L9D+Nt75LMVWc0/KsUfxrIEyvM8qHNg1LUaE3M KbOScCRZiFYGBspjQq10tBm78RSzVkdwALSTPWmLhA4QnYwuNSUU+KUYUvO1F27k3MNg p9G9sDRZ9KgOsTvEedIIPgRNO0XgRXsyHGwPzJvWFijgplSjrRF+Bz0JGfnX1gx1uYnQ nC1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=xFIinETH5/r87cSSufWLOfsswA39begViRr+Vs5MftA=; b=jM+o2LGbOOrLeYhrDgaA31sV7dDRB5uAxH+wNJ2YFZanntbIrmBMgccg6CzlsBiFL5 ms8Ex7DtPyFt+FQiO99T9omFvvEhacbL1NpsNsPkGTzUaM00clADO9sISNzlc8mWyY8h w7rfV2mf5NIiKUuGHtr9xrEayLUNEvcbcA2iiv3zpnAZ2nhMsz8Mi7hvTtxsE1AL2AnR g9jiV6bth8P1Ug+1IENmvISyBDSRTsgPzUY2TavejS0rMwFQ0fEONZc8S2sdt0LIpT4n PHOwzmNY5tXfpaUlVXFN6wCUFFd6hnVuTwuy5RG2m8Rj2aHlJ7mysuyEvmO8cuE4/1sx rOLA== X-Gm-Message-State: AOAM5312w4CJszw6x//D9d8tG10vVVxkdyQz0V83OF061xaWax/TXYvX 8YzDYUeGQFL7AcKmXVaOI5KNGWyK2XQ= X-Google-Smtp-Source: ABdhPJzwYI0g8abbwx62WedrJg3LKa5eypDWvf/ThXI0pz2DaDM81acoL2YpWF33i7RL+xhxIboS/A== X-Received: by 2002:a05:6870:638d:b0:f5:d6c9:3f45 with SMTP id t13-20020a056870638d00b000f5d6c93f45mr998893oap.233.1654010938520; Tue, 31 May 2022 08:28:58 -0700 (PDT) Received: from nathanxps13 ([2600:1700:48f8:340f:2ab9:d13:f3d4:4275]) by smtp.gmail.com with ESMTPSA id i21-20020a544095000000b0032c015879c9sm3219179oii.9.2022.05.31.08.28.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 May 2022 08:28:57 -0700 (PDT) Date: Tue, 31 May 2022 08:28:55 -0700 From: Nathan Bossart To: Michael Paquier Cc: Noah Misch , pgsql-bugs@lists.postgresql.org, =?iso-8859-1?Q?F=E4rber=2C_Franz-Josef_=28StMUK=29?= , Tom Lane Subject: Re: Extension pg_trgm, permissions and pg_dump order Message-ID: <20220531152855.GA2236210@nathanxps13> References: <1961551.1653498155@sss.pgh.pa.us> <20220526055047.GA3153526@rfd.leadboat.com> <20220528045122.GA3228881@rfd.leadboat.com> <20220529033033.GA1973706@nathanxps13> <20220529043403.GB3265235@rfd.leadboat.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="huq684BweRXVnRxX" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --huq684BweRXVnRxX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, May 31, 2022 at 01:30:11PM +0900, Michael Paquier wrote: > On Sat, May 28, 2022 at 09:34:03PM -0700, Noah Misch wrote: >> On Sat, May 28, 2022 at 08:30:33PM -0700, Nathan Bossart wrote: >>> I started looking at the problem and hacked together a >>> proof-of-concept based on your first candidate that seems to fix the >>> reported issue. However, from the upthread discussion, it is not clear >>> whether there is agreement on the approach. IIUC there are still many >>> other code paths that would require a similar treatment, so perhaps >>> identifying all of those would be a good next step. >> >> Agreed. To identify them, perhaps put an ereport(..., errbacktrace()) in >> aclmask(), then write some index-creating DDL that refers to the >> largest-possible number of objects. > > While we've reached an agreement on the thread related to the > corruption caused by the incorrect snapshots for concurrent index > builds, this thread seems to be stalling a bit and we should try to > move on before getting a release out. Is somebody looking at what we > have here? I've spent some time looking at all the code impacted by a117ceb and 0abc1a0, and I've yet to identify any additional problems besides the one with ResolveOpClass(). However, I'm far from confident in this analysis, and I still need to try out the ereport() approach that Noah suggested. I would welcome any assistance identifying other problem areas. For now, I've attached a slightly polished patch to fix the reported issue. It's still rather hacky, and it does nothing to reduce the complexity of the current approach of weaving between user IDs, but perhaps it can serve as a stopgap solution. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com --huq684BweRXVnRxX Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="v2-0001-Ensure-privilege-checks-in-CREATE-INDEX-run-as-ca.patch"