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 1sSkb2-009uDy-Bw for pgsql-hackers@arkaria.postgresql.org; Sat, 13 Jul 2024 21:48:00 +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 1sSkaz-001heB-0P for pgsql-hackers@arkaria.postgresql.org; Sat, 13 Jul 2024 21:47:57 +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 1sSkay-001hYt-MB for pgsql-hackers@lists.postgresql.org; Sat, 13 Jul 2024 21:47:56 +0000 Received: from mail-oi1-x231.google.com ([2607:f8b0:4864:20::231]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sSkav-001zBj-V2 for pgsql-hackers@postgresql.org; Sat, 13 Jul 2024 21:47:55 +0000 Received: by mail-oi1-x231.google.com with SMTP id 5614622812f47-3d93147ac6bso1802395b6e.0 for ; Sat, 13 Jul 2024 14:47:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; t=1720907271; x=1721512071; darn=postgresql.org; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=dNZR+fEOkGcuH2fnkzp+tciRLJ2VWjLonbO6C7WEBLw=; b=V6aQC/e+yznkkgXYLkjdAG8K1xb7jIlnzbhPJwHSNgByUJUXvEXB/pBz3yOFAlw4md /n2qY9pMfixns10RX2zu0+hRAkt5O2FdzYB2NlDn+yUd8Z7vRLIoYgxbpUEdGsEpA+gV 4UZQE1/q1GnKtveb0zGbvFyKm8yyJkjCpzMuM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720907271; x=1721512071; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dNZR+fEOkGcuH2fnkzp+tciRLJ2VWjLonbO6C7WEBLw=; b=Mke5UNr8uw56mOTe4uc/5+o7CYKIAq7+R2bxf1Yvovjtn/LGqlb2/Lr9042c8YOAgS 33J29coi7Vy5YIS/BSsa7aE0GE9/g1SV4zPOABqiDTWcCpQaiT21Y2dJX+Y+0z93wsO9 vrWbIYKxpZoCNC5V5VHTbcvp0iQ1J4rAlfPXu8fWhOOmfafO47iZT24hoRdVGp+WEFG7 Yh9B7WSJih70xiVaIYRinc0Yth5MT/APxmxnQWjATZPtgng+tUe57uOZawfmWSC2TE/H 0NFQ7okG7tWC27uFyd990T24QL3Hg1bLsaUFx/abX1bxA6Ixnm/YWlbvgToss2LqeErs L6jQ== X-Forwarded-Encrypted: i=1; AJvYcCUQrO/0onhM1oVvFFSBsEy5Poi0p6Uu7ZIv7oGjFBVyP6VSYkF38l/wybNiLKP8sKi2eb1m4yi5Q5rQwoXNyU1Pn/9Ihz7WfuXz67e3 X-Gm-Message-State: AOJu0YzU1u1rSY/5fjFlOV5cnV4FkvOv05j5YpTqYTGMQvEu0bsROzuW lbITg8tZyJeHchoRB1557FO5/YifEhxAQNcGvPUKOOZnowClNTap8Jj7fQ5VMA== X-Google-Smtp-Source: AGHT+IHu0Yimz1orjCcLiRTfY50FvuCaTq69oYkiHk1ix9FCLTuLbce4a7U4euJ9fNw60a8yKC/pJw== X-Received: by 2002:a05:6871:3311:b0:25d:5024:4fc0 with SMTP id 586e51a60fabf-25eaebc7f9bmr13030864fac.46.1720907271534; Sat, 13 Jul 2024 14:47:51 -0700 (PDT) Received: from rfd.leadboat.com ([2600:1702:a20:5750::48]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-2607530524asm397989fac.53.2024.07.13.14.47.50 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 13 Jul 2024 14:47:51 -0700 (PDT) Date: Sat, 13 Jul 2024 14:47:48 -0700 From: Noah Misch To: Jeff Davis Cc: Michael Paquier , Nathan Bossart , pgsql-hackers@postgresql.org, Joe Conway , Robert Haas Subject: Re: MAINTAIN privilege -- what do we need to un-revert it? Message-ID: <20240713214748.cb@rfd.leadboat.com> References: <20240228165523.GA2435539@nathanxps13> <31ae1bf73e8a1dae3ee7ef2dd43a9bbda1e1ab86.camel@j-davis.com> <20240630222344.db.nmisch@google.com> <23fac3b2a722373a52b92a12ee0f500821450f97.camel@j-davis.com> <20240711125207.98.nmisch@google.com> <20240712231149.0d.nmisch@google.com> <8e0438821bddd4de198989e6ac0f9a2aa27cabeb.camel@j-davis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8e0438821bddd4de198989e6ac0f9a2aa27cabeb.camel@j-davis.com> User-Agent: Mutt/2.2.12 (2023-09-09) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Jul 12, 2024 at 04:50:17PM -0700, Jeff Davis wrote: > On Fri, 2024-07-12 at 16:11 -0700, Noah Misch wrote: > > Since refresh->relation is a RangeVar, this departs from the standard > > against > > repeated name lookups, from CVE-2014-0062 (commit 5f17304). > > Interesting, thank you. > > I did a rough refactor and attached v3. Aside from cleanup issues, is > this what you had in mind? > +extern ObjectAddress RefreshMatViewByOid(Oid matviewOid, bool skipData, bool concurrent, > + const char *queryString, ParamListInfo params, > + QueryCompletion *qc); > Yes, that's an API design that avoids repeated name lookups.