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 1uqb4f-009IQN-4a for pgsql-general@arkaria.postgresql.org; Mon, 25 Aug 2025 17:33:42 +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 1uqb4e-00CB80-Je for pgsql-general@arkaria.postgresql.org; Mon, 25 Aug 2025 17:33:41 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uqb4d-00CB7r-H3 for pgsql-general@lists.postgresql.org; Mon, 25 Aug 2025 17:33:40 +0000 Received: from fout-a5-smtp.messagingengine.com ([103.168.172.148]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1uqb4b-001hOZ-1q for pgsql-general@lists.postgresql.org; Mon, 25 Aug 2025 17:33:39 +0000 Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfout.phl.internal (Postfix) with ESMTP id 5BF74EC0391; Mon, 25 Aug 2025 13:33:37 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-03.internal (MEProxy); Mon, 25 Aug 2025 13:33:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1756143217; x=1756229617; bh=nrIG0sBnZ9W1WzvnX1gUi+dYv756OiT40f0/mjFWLwA=; b= NoapMqmd9X+e7b3/pQBd8Fi2Vs81aJjHbrJN0NwP4LO+OQS3ofHYnlZSI2AisvZ3 GZkL+/I1Yram5wWm+Q29MuZtfB9CKhFyV1bL23lLkdWQYDh8kXMKSKE+mnh7VD1x YOzj54NJPbApu7vyISilVWPihqPlh1ErmRdxgmFy+HD8cavnaBlCMsGxYsZn+1OU i49jnE4PGZ20doRGVUWGf2nr2Dz0bTNcWCF4n+uZu2cF23nK9idwKavar6x/opTS m1EtgL0634O8VLpkuisGdWhaREjYk/87hIqeQxKvBmJXdK4FCOfUTLj4F5rmFEVn YzIe7ocKxUsy/byyJibgxw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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 :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1756143217; x= 1756229617; bh=nrIG0sBnZ9W1WzvnX1gUi+dYv756OiT40f0/mjFWLwA=; b=Q 5tzXz6l+JvtL+Xuex0gHAS+1Plo7VfDRda/Cp+rTj5Z5DVhBySprpunjshO4F+8u K83hu7F3XmxntunRyMeKiG1OusMfrTBG0bbAhQBQpBTufEZ2qoxTlhSklsEfGwjh Aj/OnCH6tBKwlYBN61kGkDVMPH2+vYl6eQLG46wYijMvcLry0tvI04SdEZ1qBJIh bYaJfWPMztNGFMvpydc75IZQORSJ8wzQaLV+6lZ5mpOZo4Qu0/VDXp4j96QU/NVq 4I0oqmyY2RZZTKMb7+6NpCO21bTNSWrNlwni0zbRDMPbjCjQ4mUCsCCEyvwv2uNm wNCw7xBhF4AkI6qv+Sh5Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgddujeeftddtucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecuggftrfgrthhtvghrnhepfeegfeeiuedtgffgteeggfehkeejheetieeliefgteei keejvdeiveeigfehvedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhdpnhgs pghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepugguvghvih gvnhhnvgesghhmrghilhdrtghomhdprhgtphhtthhopehprdhluhiirghnohhvsehpohhs thhgrhgvshhprhhordhruhdprhgtphhtthhopehpghhsqhhlqdhgvghnvghrrghlsehlih hsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 25 Aug 2025 13:33:36 -0400 (EDT) Message-ID: <26239cd6-a13d-4137-9f1d-61e18c4cf0e6@aklaver.com> Date: Mon, 25 Aug 2025 10:33:35 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: DISABLE TRIGGER doc wrong? To: Dominique Devienne , Pavel Luzanov Cc: pgsql-general@lists.postgresql.org References: <185dd861-4e5a-47c0-9f2e-84dfa8a406ca@postgrespro.ru> Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 8/25/25 10:24, Dominique Devienne wrote: > On Mon, Aug 25, 2025 at 7:13 PM Pavel Luzanov wrote: >> On 25.08.2025 19:19, Dominique Devienne wrote: >> Simple experiment shows that it is still up to date: > >> alice@postgres(17.5)=> alter table t disable trigger "RI_ConstraintTrigger_a_1260370"; >> ERROR: permission denied: "RI_ConstraintTrigger_a_1260370" is a system trigger >> alice@postgres(17.5)=> \c - postgres >> You are now connected to database "postgres" as user "postgres". >> postgres@postgres(17.5)=# alter table t disable trigger "RI_ConstraintTrigger_a_1260370"; >> ALTER TABLE > > We were using ALL, successfully but incorrectly, and are now using > USER, successfully. > Not a named constraint trigger as you did. Could it be ALL implicitly > excludes such constraint triggers, when not SUPERUSER? And thus, as > the table owner, ALL == USER, implicitly? If that's the case, then the > doc still needs clarifications IMHO. --DD > > I am not seeing it: select version(); version ----------------------------------------------------------------------------------------------------------------------------------- PostgreSQL 17.6 (Ubuntu 17.6-1.pgdg22.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, 64-bit create table test_table_parent(id integer primary key, fld varchar); create table test_table_child(id integer primary key, fld_child varchar, parent_id integer references test_table_parent on update cascade); \dt+ test_table_child List of tables Schema | Name | Type | Owner | Persistence | Access method | Size | Description --------+------------------+-------+---------+-------------+---------------+------------+------------- public | test_table_child | table | db_user | permanent | heap | 8192 bytes | NULL \du+ db_user List of roles Role name | Attributes | Description -----------+------------+------------- db_user | | alter table test_table_child disable trigger all; ERROR: permission denied: "RI_ConstraintTrigger_c_121933" is a system trigger -- Adrian Klaver adrian.klaver@aklaver.com