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 1rySW6-00GNH2-KV for pgsql-general@arkaria.postgresql.org; Sun, 21 Apr 2024 08:25: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 1rySW4-00DfHt-Nq for pgsql-general@arkaria.postgresql.org; Sun, 21 Apr 2024 08:25:40 +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 1rySW4-00DfHl-Cz for pgsql-general@lists.postgresql.org; Sun, 21 Apr 2024 08:25:40 +0000 Received: from mail-oi1-x22f.google.com ([2607:f8b0:4864:20::22f]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rySW1-0026aH-OW for pgsql-general@lists.postgresql.org; Sun, 21 Apr 2024 08:25:39 +0000 Received: by mail-oi1-x22f.google.com with SMTP id 5614622812f47-3c74b643aebso1184140b6e.0 for ; Sun, 21 Apr 2024 01:25:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713687935; x=1714292735; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=TBrfx+7PRHlY+H80ES+vfkhoSboPTtQlLAQKy5+w3a8=; b=dhPvK7e0DTJw+mbxMmOtSh0iPz4hBvVh+g7EVWRL+RG6P2oz2xrjt5WKZJGGMyD0mi ARGVr3Ds2ZEjZtznSUj4QgtRq16cUhQeNO56jK42SWjPrEb0QDcokgJDZgyXGw/yaldb hV+SgEFuk0v/6lc5UeJUIc3iCmFkdwCA7uWAXXB8U3boHnINnCE3mLUyJlNMye76rtpk h6HM2mPgnVg9HGTZtcN7u3GfkrIWbaMlqhbOOssLLRTBSHkB//dWMKMdPI410z3XKRAW 6IPI/OAkvXc02mqzh/EwmYH+tun14nzNukFSOXHBrX1pY5ZjXHFvAz6J29wAP2BuXIny wPZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713687935; x=1714292735; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TBrfx+7PRHlY+H80ES+vfkhoSboPTtQlLAQKy5+w3a8=; b=K/TCzWl25rAIiJl1ugGMRs0xAT7X+64kkuL5DQQn8K87zyo5h+GnfoDfjOEIjQPILo cCtRszFqjOnzqJRRWFnPWsRlcXy09N/Nv7k2qYb196+9OS5c5dZ9lyIRschGsIaGlQEJ vCncvnB0Dnkmx4/ermxS26J0XJLjJPalbv9GW8MVu6spHYAtq74Hkw4KJtGfcxO3Hx1t D219zM1soNXdrag0vZzKDIxVtRlhTHQFEdC4SmVcAcbfP67KIpWAMxIHIZFIr2nxzkV1 P+dGo1MUhmI72HPsSOmgt7oMDlz6KXXz10j+JAe/4fYe2iFUCOS5uGmN/Eh8lGMNEty5 pvVw== X-Gm-Message-State: AOJu0YxxqFGyVGdG8EzwcPbYCGhGpQToyYxYyPjlSvXwy0jgAp2AZJjI 3WV2Qn+E90vhwLgbjOY7vY2BLcq9BvePfC33An0mzSiMUAtfEX3B+AvnvoDYkiMjafDLxuzGUxR 1mgnaKd/FofoYZoX0T3VeTA/XT4o= X-Google-Smtp-Source: AGHT+IHg7zZlohToVHFRtX4ltoiNa/YWOAi0YLBRpNyQ8Vxm82DoiUlhNMlf1bybAvrPPTlN4DvKjLFIVGRaanctMXc= X-Received: by 2002:a05:6870:7184:b0:239:7f90:e54 with SMTP id d4-20020a056870718400b002397f900e54mr7688671oah.18.1713687935710; Sun, 21 Apr 2024 01:25:35 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a8a:d96:0:b0:525:bd21:4d70 with HTTP; Sun, 21 Apr 2024 01:25:35 -0700 (PDT) In-Reply-To: References: From: "David G. Johnston" Date: Sun, 21 Apr 2024 01:25:35 -0700 Message-ID: Subject: Re: error in trigger creation To: yudhi s Cc: pgsql-general Content-Type: multipart/alternative; boundary="000000000000a9fe0a06169710d2" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000a9fe0a06169710d2 Content-Type: text/plain; charset="UTF-8" On Sunday, April 21, 2024, yudhi s wrote: > so that it will be able to assign the privilege, so we will be able to > create the event trigger without need to run the event trigger script from > super user itself? > Write a security-definer function owned by superuser and grant app_user permission to execute it. David J. --000000000000a9fe0a06169710d2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sunday, April 21, 2024, yudhi s <learnerdatabase99@gmail.com> wrote:
so that it will be able to assign the privil= ege, so we will be able to create the event trigger without need to run the= event trigger script from super user itself?

Write a security-definer function owned by superuser and grant app= _user permission to execute it.

David J.
=C2=A0
--000000000000a9fe0a06169710d2--