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 1qeCmo-0065fM-MK for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Sep 2023 11:02:59 +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 1qeCmm-001Cc7-BM for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Sep 2023 11:02:56 +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 1qeCml-001Cbt-AA for pgsql-hackers@lists.postgresql.org; Thu, 07 Sep 2023 11:02:55 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qeCmf-003eMP-VC for pgsql-hackers@lists.postgresql.org; Thu, 07 Sep 2023 11:02:54 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 6A4D35C00C1 for ; Thu, 7 Sep 2023 07:02:47 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 07 Sep 2023 07:02:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1694084567; x=1694170967; bh=W oYJmxAUpZl9+7uRHsgAoIY6FpWwekRJ8d/wsfwPv8I=; b=qFyagl5BXw2LTvmmv oThz5QFx8kKxAlwC+ZIl113tQ+s1ZH/GakQ4HNJLAyzW02O/ohF5pMNjxZ2gELVP ULAL8o33PyPFxYk8yAlow/Lstrv8UwHAxSTcqYwlZOu6xJTw71PZYheU0ObV9nGc 2qhFSZmH9MevPonRXii6SchOeF2swh4fg6PM6iHW+pLqD53jWpVxiCiJUoy7vCyC mkhcwso+1Dv/hcpYb+2C1GNIlWgGCWPjV3plr/1kAE6QgwaubnRBYSL+fmmCQnwa CgB/ubGBZ4fySU2tacG1xtED0IsldsUdPycW0frkt3IYFGBq7Gp9w1KbUbAwIY+O shFLg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudehhedgfeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpedujeevjeffjeevuddutedvkeeiueeitddvieelfeekveej udefgeeuvdejhfeuleenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Thu, 7 Sep 2023 07:02:46 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 5FE90426; Thu, 7 Sep 2023 13:02:45 +0200 (CEST) Date: Thu, 7 Sep 2023 13:02:45 +0200 From: Alvaro Herrera To: Pg Hackers Subject: Re: missing privilege check after not-null constraint rework Message-ID: <202309071102.g6jvu5mgzfit@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <202309051745.jk3bqxm26fbx@alvherre.pgsql> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2023-Sep-05, Alvaro Herrera wrote: > On 2023-Sep-05, Alvaro Herrera wrote: > > > Here's a fix to move the privilege check on constraint dropping from > > ATExecDropConstraint to dropconstraint_internal. I have pushed this. It's just a fixup for an embarrasing bug in b0e96f311985. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "Pensar que el espectro que vemos es ilusorio no lo despoja de espanto, sólo le suma el nuevo terror de la locura" (Perelandra, C.S. Lewis)