Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kFhTq-0006eC-6L for pgsql-bugs@arkaria.postgresql.org; Tue, 08 Sep 2020 17:32:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kFhTo-0003RS-Eb for pgsql-bugs@arkaria.postgresql.org; Tue, 08 Sep 2020 17:32:28 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kFhTo-0003RG-3x for pgsql-bugs@lists.postgresql.org; Tue, 08 Sep 2020 17:32:28 +0000 Received: from mail-qv1-xf34.google.com ([2607:f8b0:4864:20::f34]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kFhTl-0001Dr-TB for pgsql-bugs@lists.postgresql.org; Tue, 08 Sep 2020 17:32:27 +0000 Received: by mail-qv1-xf34.google.com with SMTP id db4so98365qvb.4 for ; Tue, 08 Sep 2020 10:32:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=0DJHsgs4id+dJ5m2NkPqjXrZvkVAwoXABoxqzUtSgjk=; b=OlqaLc0dGp/fyfeaC0azO9XQ+ntnkJkQ268bS5oYanMN9GK9ab1jocqoS2ojPR5Cvh 75xNCEIxxVGtlrcdWs2pT5K/Ot6mi4cjx5LaPZCvOOEgO8K3PK3wOvTs46wbeUhHgUQE qke8Kl3t6tP7EWAEdGvNTwO8ACXcpIlez8idphcAvXHn4wrMnkuVSc2pslicAuUvTuB4 C509JjAbBrp0T3/Y4gDA/f34pEs4kjcHDWq8xIgcVpfcicjIzJXTepzqMjXNw0c9YsXc L6KNbgEhAG45Lef9MovHfaTCcXBFkcG/Ti1B9vJgXY1RbfEM0Suqv6DE+B9/Y1GddQpF L8jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=0DJHsgs4id+dJ5m2NkPqjXrZvkVAwoXABoxqzUtSgjk=; b=o5MYI6h56NoukiTAGACJ11k5TOaTE8RckAx2VWdqChA8pppHofOYfqE9aIu5/dXWhy j1O6tDD4DidHn9S1hT7I0GH0Jr6i8Xzl4gRjVk0UdZRN7GkZjtjegRQeccpLtjgiklsX XU9UQRnVPCUbyyTHKGlZ6bznvb8f3qUR92Ub3RpS4sCiohaiu4UcJ/tUjVoqKnhZMHsT 6kW10NOGZFif9gh9Ulyp5B9lsOrPUfLvUL37w2J9Hz2amFgXaf14HViIhBKa2h7ghn8n 89S8EbPOYKzFKHdyksUq2xH7G1TMS36IbiMUHK8WLvAT0uiCf1kmwjVdUNxRrJMnJ6z6 4qdw== X-Gm-Message-State: AOAM533vdMtqI+HHf1k36eIAksUB+34PGDtt2vm+l3W4LTzZyO8T243x eZA6ZbB9lRXLPpW4JL8aSHa9dg== X-Google-Smtp-Source: ABdhPJzNTHVhpgodDSCRpXjdRSpcSdmPwKqo7qTWflgnFW2uLckl4RsRlYc27GqxqivyjFQVOC+yOw== X-Received: by 2002:ad4:43e5:: with SMTP id f5mr232430qvu.12.1599586344280; Tue, 08 Sep 2020 10:32:24 -0700 (PDT) Received: from perhan.alvh.no-ip.org ([190.95.19.47]) by smtp.gmail.com with ESMTPSA id e24sm13810321qka.76.2020.09.08.10.32.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 10:32:23 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 0A1DB2A100E; Tue, 8 Sep 2020 14:32:22 -0300 (-03) Date: Tue, 8 Sep 2020 14:32:22 -0300 From: Alvaro Herrera To: Jehan-Guillaume de Rorthais Cc: Michael Paquier , pgsql-bugs@lists.postgresql.org Subject: Re: [BUG v13] Crash with event trigger in extension Message-ID: <20200908173222.GA781@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200908190759.12405fe5@firost> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Sep-08, Jehan-Guillaume de Rorthais wrote: > I still have a last question in mind though. While running the bellow > scenario, the DDL in the extension do not trigger evt_ext_ddl_fnct. Is it > normal/expected? Hmm, I think this is intentional; see standard_ProcessUtility and ProcessUtilitySlow, noting the value of isCompleteQuery for the execution of the extension script. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services