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 1kE0Ov-0006AB-Ur for pgsql-bugs@arkaria.postgresql.org; Fri, 04 Sep 2020 01:20:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kE0Ou-0003Sf-Rz for pgsql-bugs@arkaria.postgresql.org; Fri, 04 Sep 2020 01:20:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kE0Ou-0003SY-LH for pgsql-bugs@lists.postgresql.org; Fri, 04 Sep 2020 01:20:24 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kE0Oo-0005UJ-FW for pgsql-bugs@lists.postgresql.org; Fri, 04 Sep 2020 01:20:24 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 481925C00C3; Thu, 3 Sep 2020 21:20:17 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Thu, 03 Sep 2020 21:20:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm2; bh=0IQ1UtwY1ZFrtHRP96vqzjfzWPK Vum6am9UkQ32J+wA=; b=sA0v4nS9+IT0aZMIpslwdr6qZEyHAzWPFF+dxSowDCk 7tuNKOQTQr9XmfU/uDSj0QtlooWtTlobTp1pfWaCAJO9JsieT5oBOTZsDsTCQF9h ZbCk1AXsKc1tt5x5XfEyUK+5NUu7EEv8/czLW3iOiRlzxwPePaMlenTnRNN7AQ1p 0la9E0OhyYXh1J6NChehy8Eb4L29eICr46HvQIFK/a7JFtuJ2qfGptU6QyUSXVXt aKduy+GEye+GOCc/jkNbAdS0WyeI4+Unl9KR/4ugv+Tm98a6jhORNXE0+S6Xd9+v /bEYODX6qq+MDGNNuhVDgm5Uc1CrlV7O7JYTpOIUgDQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=0IQ1Ut wY1ZFrtHRP96vqzjfzWPKVum6am9UkQ32J+wA=; b=uNq1065ZZUVYJWX1FzGtj8 G/e5YKFiDW7qrnJHQhOlXW+qstKVQrD/VU5l1ZruPNm4UKEI7RpTv6S4+PDGcgqP SJ94kChs8KX6RZU6O7nADIws/+lw+5iFNcAlBxai+pJvCFFdW8Few/8btizLdZDJ HLTw+pbpNZ3rrsFLGfMD4I4QTc9DoQ0bPECJ1G6SfPFNPdjjdynMa35Xr1ZfCf4o lv3BOjtNk2hrwgKzq9GsOGHNTagakUqLlSpWCPq4x75zemD7+QkH+195KIWgpvFB CvrtxQKtDL5E9F/TG6n2vJVb0evhHaYdWlEsYIaYh4usnCRkzv/TW/APS4vyn8kg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudegvddggeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpedvgeduuefhtdeuleettdevjeeh heeiveeuieegleetgeeljeelieeuieehgeevhfenucfkphepudduuddruddtvddrudektd drudekheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id DC8F4306005E; Thu, 3 Sep 2020 21:20:15 -0400 (EDT) Date: Fri, 4 Sep 2020 10:20:13 +0900 From: Michael Paquier To: Jehan-Guillaume de Rorthais Cc: Alvaro Herrera , pgsql-bugs@lists.postgresql.org Subject: Re: [BUG v13] Crash with event trigger in extension Message-ID: <20200904012013.GE19499@paquier.xyz> References: <20200902193715.6e0269d4@firost> <20200902175328.GA21242@alvherre.pgsql> <20200903194114.34af669a@firost> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6cMF9JLEeZkfJjkP" Content-Disposition: inline In-Reply-To: <20200903194114.34af669a@firost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --6cMF9JLEeZkfJjkP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Sep 03, 2020 at 07:41:14PM +0200, Jehan-Guillaume de Rorthais wrote: > +$node->safe_psql('postgres', > + q{CREATE EXTENSION test_event_trigger VERSION '1.0'}); > +$node->safe_psql('postgres', > + q{ALTER EXTENSION test_event_trigger UPDATE TO '2.0'}); > + > +my $ans = $node->safe_psql('postgres', q{ > + SELECT extversion > + FROM pg_catalog.pg_extension > + WHERE extname='test_event_trigger' > +}); > + > +is($ans, '2.0', 'Extension test_event_trigger upgraded'); I may be missing something of course, but if this just tests a sequence of SQL commands, why don't you just include a SQL test in text_extensions/sql/? That would be much cheaper than having to create a full scenario with a TAP script. -- Michael --6cMF9JLEeZkfJjkP Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl9Rlk0ACgkQnvQgOdby QH0p5Q/9GJM14Jf1z7pAziB3ScZXUpEB4oXFxnpyh/uXa/3gWK8gySxuJYPO9JSS eCSk9vuksUefa/3KRX2aXGVickSXVcNT++9ki+dwWPifQnT2jQBnzxiVsSxk9EFB B+RsiR/fmPQZ1Ax6bY6wp6Bz6YmPj5McBdlAkuNEaSakmDeX5DY7ucj8EbNeJSNH 8Dmysx7DSSUMLsMYkE7xoJaENYA9ODrkd6cjfbPHYWexn/xSPdLH1yFO0Tr3gzws dho2gtYPEH4hakdS0CTEmIoaAVTbWjkQtYnaTT6K0QiswUCSSiUQMltqPFglQkey GejjyXxdJJRne1HsiR2li2hT9CPSDAHluOsN4QBd50BT7rYspeRWKTMVPobSTlz/ 8SFDh6rh45tQGru6yqfuK3rA4xYw9WAmeFAupogDg1YlpAR8JL3exbmU+EvFnQ33 s9JnpSzC2SCIGtWKk2PoD+rW7mPRJu/Ge1CHl8B4VDdoWRrCMl55+M8hDRAP4yqq N2MFmhN0SnRdECInLR3hIDRp9KMA3VRyu//YrGltqBVR/qNKD24Wfkqb5jH+n9Ni zzV+M7MxrqT5mbBV3FbshyEwJyM22/WY8P48EImJS3me6ebIkz+4b5qSBp/IS1LG HBifrDlZrj2xslq+GWf9VWeWKpYvGywVKEEF66m+vXJ8rfek2oA= =sKyN -----END PGP SIGNATURE----- --6cMF9JLEeZkfJjkP--