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 1uqavd-009FCc-AO for pgsql-general@arkaria.postgresql.org; Mon, 25 Aug 2025 17:24:22 +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 1uqavc-00C58V-G1 for pgsql-general@arkaria.postgresql.org; Mon, 25 Aug 2025 17:24:21 +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 1uqavc-00C58N-53 for pgsql-general@lists.postgresql.org; Mon, 25 Aug 2025 17:24:20 +0000 Received: from mail-oi1-x234.google.com ([2607:f8b0:4864:20::234]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uqavZ-001hKN-2q for pgsql-general@lists.postgresql.org; Mon, 25 Aug 2025 17:24:19 +0000 Received: by mail-oi1-x234.google.com with SMTP id 5614622812f47-435de7d6d05so3066767b6e.2 for ; Mon, 25 Aug 2025 10:24:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1756142658; x=1756747458; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=CEFBdVerlkl9fpBQQTVJkWGsd/lSO7xLTPOmM3PSbvA=; b=l9AMEX3HM9xj1PchzWFlK/EsbUSwssZbdv3lthBkRRerrnlNTYPINWCS2xnb/t2+M4 +nRJaNZZN1ayLOITGC5VZvgajbYrqTTBhgHh+tKkMN+FKL4ZhEsxBtQ8VWZLPQGDRfqC n+NJKDmqcBwWFcHHvKTTqwiNYXl7uYBmUm4xxGDowWLnO1sTYUnh2AV6g/i/MV2q7Dv7 9bO8OixlTnhHKCn8Q7R3r1c9ULtWmWTSWqLYsYH81MYXnME3IJ3Jb+wHqOvclaBTGiGf RfjKqnnVdq2FYvmsgMKcinDgmaxXuFajlz0Up7DYTYJwmTWxVjuY13XTjn97eYY6/6H/ fK+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1756142658; x=1756747458; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CEFBdVerlkl9fpBQQTVJkWGsd/lSO7xLTPOmM3PSbvA=; b=QETtV4WMEhbR5cDJrzGy23Q70F+Pe8v06baRo7USj0mR3ZSI1z7Jsfz48A/+aoQ2KC yIaT/XnOSpSTCHp7TvV0ZZX89lwiFtcUqGbnR4Xyk7r6Gvhcg7UYbq63UUoB3O0D+6eX +nGuQiltTgrivQHjlHz2RWMzT1RB/DUD7qQf2D0KLGV0o2/6wt9CiVzOpKBIVigOlnAW CeBiELXWuEnCJKDsz41wQbW7YhBOvbyChnI9Msqx8BvjB3MxSxjspSygYx+Vg3cBsBLV lKuDRJNpuGOV33Zkb4+EfaUmiJJVjACzcFismHTp3RLBhZKAypd479+DZQpsI5FukTlX RApA== X-Gm-Message-State: AOJu0Yy5uqFjcVVDmVvrr1dvetjVt206ko/42+Y/q0s7knMO8upNlRWl LHun3pApcDE1O4G42Pc2/JzfYWG5se/sHXj8sxdk02Kmr5PDDtDE3WbM9wMIvQOi0CQ51U5OJtT /dR0YfQ5gYiKI8PcUFxiAodCIyfUv0os= X-Gm-Gg: ASbGncs9AoKmeOjfrcKr6dPNGEU64H06zId3n/p5DlD6j9sx5l8tvRmW/Nv2I2G05OA yTPBkKhYeabJugB1m1aoJ06p57QEommH/bGd/r0LhbJRZTFIQ35kXRZr1XwzhNfhS1jnua11n8z ni3jR7qQCbO34IltC/CX2i6jGDc32rMhh7s4ce/kkjNtqC81oBATAFIAogK0g2oMT9aWDUuncuK P7L1U/gEQ== X-Google-Smtp-Source: AGHT+IFYnSsTOLZCe48OsiQrLtSemi/1v4S61AjDDHwzqQsUhF+4ud6Tw6qs8tIBRIBsWlcStFtm76deOKz3Lm2IOq8= X-Received: by 2002:a05:6808:13c4:b0:436:5e4:7715 with SMTP id 5614622812f47-4378525f069mr5775012b6e.23.1756142657594; Mon, 25 Aug 2025 10:24:17 -0700 (PDT) MIME-Version: 1.0 References: <185dd861-4e5a-47c0-9f2e-84dfa8a406ca@postgrespro.ru> In-Reply-To: <185dd861-4e5a-47c0-9f2e-84dfa8a406ca@postgrespro.ru> From: Dominique Devienne Date: Mon, 25 Aug 2025 19:24:06 +0200 X-Gm-Features: Ac12FXy0XV6KPFNR37zD9POxItlxueTUpu8w7siuNROAyx0mDR1vSW7zrrheVms Message-ID: Subject: Re: DISABLE TRIGGER doc wrong? To: Pavel Luzanov Cc: pgsql-general@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Aug 25, 2025 at 7:13=E2=80=AFPM 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)=3D> alter table t disable trigger "RI_ConstraintTrig= ger_a_1260370"; > ERROR: permission denied: "RI_ConstraintTrigger_a_1260370" is a system t= rigger > alice@postgres(17.5)=3D> \c - postgres > You are now connected to database "postgres" as user "postgres". > postgres@postgres(17.5)=3D# alter table t disable trigger "RI_ConstraintT= rigger_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 =3D=3D USER, implicitly? If that's the case, then the doc still needs clarifications IMHO. --DD