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 1uqa07-008uy7-R2 for pgsql-general@arkaria.postgresql.org; Mon, 25 Aug 2025 16:24:57 +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 1uqa07-00BJhz-5E for pgsql-general@arkaria.postgresql.org; Mon, 25 Aug 2025 16:24:55 +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 1uqa06-00BJf1-6t for pgsql-general@lists.postgresql.org; Mon, 25 Aug 2025 16:24:55 +0000 Received: from fout-a4-smtp.messagingengine.com ([103.168.172.147]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1uqa04-001gi4-0Y for pgsql-general@lists.postgresql.org; Mon, 25 Aug 2025 16:24:53 +0000 Received: from phl-compute-10.internal (phl-compute-10.internal [10.202.2.50]) by mailfout.phl.internal (Postfix) with ESMTP id 62619EC0366; Mon, 25 Aug 2025 12:24:51 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-10.internal (MEProxy); Mon, 25 Aug 2025 12:24:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= 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=1756139091; x=1756225491; bh=ScHwUeLvph30ONZYdvaZ5eGAdzXxVctOGT7HSwWJgqA=; b= ANotGI+TpUyrDdMLMfCbz46KxQKTFM9gDGX1fTCqEOkbYO1K5wCCJkpv5iYvd9ZP P7XzK3Kl9vB9Rbv/tlFrL2abg+FGtJySQe/wbD3vMyY5JvBQ9wCINUgFNCItVOTQ Wf7Q/TBiR2KjCFiZgor5XoyqX8DhhveRlyGcuK2WSPeZT0w6BccD8TbXn/OHOu4T r5TlHqL0tBKzNec2BAYvLbMsq5BLnq1KGTOaZX6dY0J8STUI9VqoXL4LM6ZZse4t nm7aJ4CxhP/zGBHleC0Px5B1toYizTRzTB8ig7xBWeO9w0uvJZFprZ1k3L/EzcCb 5vbiJ+BbOBEbJZ1u9QDKoQ== 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:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1756139091; x=1756225491; bh=S cHwUeLvph30ONZYdvaZ5eGAdzXxVctOGT7HSwWJgqA=; b=G0cFLmGzU9bddTH6b /HZIYHPZCrSuFxWeuoKKsA3THeevoYJF7ANWc3v1n6jIUhgjzQTneFY8nx7uvPpS 8SIq3gccLDL1N6hUnJlb591RilTcjovtUWO0NLUwbT3uoICEWERrVVUAZUHpEvfj SvAMyE89d7LcoINh9L1oY8Y8CujDAWy9I0us3YPS9BuiCYj2DEjqjTRpYcu4izjh GPphWS5lwYsNp/heknCn9ilgpFLEow2gwQg6L6CrgwWZr1XxZJV+Av6YGpVsF6zP g+fX67ITB8QhN15A5l4grHaMA3J52pbLlEasZs+iVQh9aiV/K+gV5Di4K7avTp/g 06cSQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgddujedvkeeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepkfffgggfuffvfhfhjggtgfesthejredttddvjeenucfhrhhomheptegurhhirghn ucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmqe enucggtffrrghtthgvrhhnpeekfeehuddvjeeigfeifeejtdduudffledvfeelheeftdei ffeugfdvkeelgedtvdenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghn rdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomhdpnhgspghrtghpthhtohepvddpmhhoug gvpehsmhhtphhouhhtpdhrtghpthhtohepugguvghvihgvnhhnvgesghhmrghilhdrtgho mhdprhgtphhtthhopehpghhsqhhlqdhgvghnvghrrghlsehlihhsthhsrdhpohhsthhgrh gvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 25 Aug 2025 12:24:50 -0400 (EDT) Message-ID: <3a6e840a-5c30-4eed-9e5b-474dafc6c29f@aklaver.com> Date: Mon, 25 Aug 2025 09:24:50 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: DISABLE TRIGGER doc wrong? To: Dominique Devienne , pgsql-general@lists.postgresql.org References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 8/25/25 09:19, Dominique Devienne wrote: > or I'm reading it wrong? --DD > > From https://www.postgresql.org/docs/current/sql-altertable.html#SQL-ALTERTABLE-DESC-DISABLE-ENABLE-TRIGGER: >> Disabling or enabling internally generated constraint triggers requires superuser privileges > > We were disabling triggers as the owner of the table just fine, no > SUPERUSER involved. So is the doc out-of-date? From the sentence before the above: "... internally generated constraint triggers, such as those that are used to implement foreign key constraints or deferrable uniqueness and exclusion constraints)." > > PS: By mistake... We were ALTER TABLE {}.{} DISABLE TRIGGER ALL > when we meant ALTER TABLE {}.{} DISABLE TRIGGER USER > > -- Adrian Klaver adrian.klaver@aklaver.com