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 1u4FXQ-009r3x-Fh for pgsql-general@arkaria.postgresql.org; Mon, 14 Apr 2025 08:51:32 +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 1u4FXO-00FsrZ-6y for pgsql-general@arkaria.postgresql.org; Mon, 14 Apr 2025 08:51:31 +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 1u4FXN-00FsrQ-SM for pgsql-general@lists.postgresql.org; Mon, 14 Apr 2025 08:51:30 +0000 Received: from mail-ot1-x330.google.com ([2607:f8b0:4864:20::330]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1u4FXM-000GBk-1Y for pgsql-general@lists.postgresql.org; Mon, 14 Apr 2025 08:51:30 +0000 Received: by mail-ot1-x330.google.com with SMTP id 46e09a7af769-72a4793d4e2so2545116a34.2 for ; Mon, 14 Apr 2025 01:51:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744620687; x=1745225487; darn=lists.postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=S0j7V8zTc5H6O0cZIwYDzI13ZzNnJXviXCJwTni/gi0=; b=Du4H5fns2RmrbLQC4Ewkukv25Q0NKtcgRzr8eD3a0JV4sx+5xv7Zxhq8492OTU9yXa 29VCE7CgxQsXzZxOTfSmB6qCEtJdouof8Dyym+TYIS7ZZa3+ZjWreqhJtzAQXpevZDcB JfatLnL/BxxbJv24w0s81YuV9U3MhX4bhyssrDMC+tJVV2MzZQR1b562GD5P0heZKAej Pr7g73BKKDq9qwk9P3Jh+JPG+58xhAx1hP0mPhEEFNeyXlZgXTBEDxl01jOu3Is8ui8F BciG+aeGx7ohheuCyp8FPlH8jnb5Wauzd9ojGhzWshefS4IUyEi7YDf1QfmnciS8ViXa I7XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744620687; x=1745225487; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=S0j7V8zTc5H6O0cZIwYDzI13ZzNnJXviXCJwTni/gi0=; b=fTBZMBRwqA0MR72x8xNQUMwH1fgd1u1FPDXU5SiIgTIbdo9gkM3gYWiqDPSG5+OCL5 Ef+RC6Ea8MdB04wTgsbOH+vgI+9jo2Sb7n9VPhM5lVgQ3sahA+Ak/IZONx5dhgQ1k/XV KFhASTkZ4r0Iqh/zjeK1kEMi4rOTTVcNsnXSwilXABUV9yUeviCMfo71+SAd+O6AntMI GrJCrLXAZ5Dh21wU4R3qi2mgKcNFNovCHvUR4fuShAF0n6T8EsF5h7g6HGXyjEpzuAuJ kea2ENvHhYViQEg7TkOeMK1Qz9BQ5Roo2A5ilXhZgwdL89tZUXHcH27bvwendhG20bAf CWig== X-Gm-Message-State: AOJu0YxnDg1E9TSns1ON2TcpttsdqmUv/bEb5yfE1z5yitWKRPy4uzfr XGy6++3iTgJ0fwdVbly+J/KUcyJ5tP02QoxP/UR1UBiCyrQpIJH24B5bUnqKqqnAXFWu9EDEIsg HU18wWeZyeQ5LAPWTSZLWm33wGNrDsrH9 X-Gm-Gg: ASbGncszzaUP5f/A2bgfSur7V99O0PlYuEWRvcg9FeiQ6xECk/siFAY2GGjxjHdyc7K 06GizBiQx3VXpJUKKPCJc+F+OcJhOgrV+IFE/4DLfTdbSc1Crx9qS5Jv8mzvW3KUiImai/pnLlH FHP1ueW62P+fIFeFb/3Ek+ZMykKs9dypvxT10= X-Google-Smtp-Source: AGHT+IGQiqQlGcIxWEO7H9MbsCukML+CvenyyLfV3ovYmvqy4RraKKxhQ2r5mThuyvuspL4T37XOuroFioluetciG8g= X-Received: by 2002:a05:6830:638d:b0:72b:84ab:b1ad with SMTP id 46e09a7af769-72e862d74demr8226878a34.1.1744620686620; Mon, 14 Apr 2025 01:51:26 -0700 (PDT) MIME-Version: 1.0 From: Dominique Devienne Date: Mon, 14 Apr 2025 10:50:57 +0200 X-Gm-Features: ATxdqUEHwdyUfTRqaMuo_0zuFBlhKdLBpoihf9ME_xqvezVMe6hjwMwWQjhtVvA Message-ID: Subject: Event-Triggers for DB owners instead of just SUPERUSER To: pgsql-general@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi. I'd like to use CREATE EVENT TRIGGER, but they are SUPERUSER only. In the past, CREATE EXTENSION was also SUPERUSER-only, but is now also available to DB owners. Which is great! Can't event-triggers also be available to DB owbers, instead of just SUPERUSER? Having CREATEDB does not imply having SUPERUSER, and I find it very limiting that the DB owner cannot setup things like event-triggers (for "local" auditing purposes) on its own DB. Is this something that has been considered before? Any technical issues to enable / add it, in the future? In general, can't the DB owner be considered a mini-SUPERUSER for anything related to that one DB? Thanks, --DD [1]: https://www.postgresql.org/docs/current/sql-createeventtrigger.html