Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iFST6-0002QB-7s for pgsql-committers@arkaria.postgresql.org; Wed, 02 Oct 2019 00:26:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iFST3-0003aO-G4 for pgsql-committers@arkaria.postgresql.org; Wed, 02 Oct 2019 00:26:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iFST3-0003aB-9A for pgsql-committers@lists.postgresql.org; Wed, 02 Oct 2019 00:26:09 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iFST0-0004GI-1z for pgsql-committers@lists.postgresql.org; Wed, 02 Oct 2019 00:26:08 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id BA22373F; Tue, 1 Oct 2019 20:26:03 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 01 Oct 2019 20:26:03 -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=ElAdkAZxl3/wskQmpui9kICMtyH d+y9DwvATWaIvZL0=; b=vC61tLsRVeGDbBrxAycapcCf2pmHvzEyG0XfKugm8aF z6FJTpeiKIx/JDQjgrlHEsV05CcWu6xZIYbzd+5N19B+SaI1mv6bG/2N6WKUaX8k g87c8FvsWH8U6BhBVq2I42MMXFJx1d+EcVpL3ck2yA6iJ4VTpRyeZ/5oDeiyFdZo 9sphbKBR60+GMvqJXODoXwYpkgNqiBSFy7apdbDxk4z/jQuaRonXM6ZA724o5z8E h1Kv5JaZeB7YAWFAy/UUBAPz6qcZOPLW3TgZxGyB4vlc9ASQbE9VGhFY0+FKNM73 /ZrLjIeVBO829qgYIvytniNuDFYwc6uxCOBiFf1HtyQ== 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=ElAdkA Zxl3/wskQmpui9kICMtyHd+y9DwvATWaIvZL0=; b=PV70RbKFrow3YEhu10Bm6z BI24uPYHQuM3i5JDa/y6JAcyA2xjCRNGrS1Mprr3jiT701m4xsqDqF55EUB3q8cs 2CDpiiEHyaGPUAut8DhSWKGyGisfMQ1kS+9XoQitKaXpOS72uJv0EX8pgYXFGelP wgamcWfWbXbGQdG5nDru+x3Mc5rxSw98yokoi9ilnpz+0myvdGlpemX5ZDtIpevb fJushd75y56R11ZrKYJopv9Eiwoq6HvDTJH2Le1JtDh9LITCML/ZNAvsfSfJ3xHP TVd/pXvxnTamyQo0wjoJzED4NOhcRpYol+X+K2VWRv4H5P/KN/Sl98Jr39pCzwHg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrgeehgdefgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecukfhppeduuddurddutddvrddukedtrddukeehnecurfgrrhgr mhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiinecuvehluh hsthgvrhfuihiivgeptd 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 84A7680060; Tue, 1 Oct 2019 20:26:01 -0400 (EDT) Date: Wed, 2 Oct 2019 09:25:58 +0900 From: Michael Paquier To: Andres Freund Cc: Tom Lane , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Add hooks for session start and session end, take two Message-ID: <20191002002558.GB3130@paquier.xyz> References: <20191001045246.GF2781@paquier.xyz> <18722.1569906636@sss.pgh.pa.us> <20191001052543.GI2781@paquier.xyz> <20191002000228.i2vcd4maxy3nl3vp@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="+nBD6E3TurpgldQp" Content-Disposition: inline In-Reply-To: <20191002000228.i2vcd4maxy3nl3vp@alap3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --+nBD6E3TurpgldQp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Oct 01, 2019 at 05:02:28PM -0700, Andres Freund wrote: > The reason for that is simply that at that point llvmjit.c's own > shutdown hook has already shutdown parts of the JIT subsystem (which > needs to flush profiling information to disk, for profiling to be > useful). Hmm. I missed the actual point. The current location for the session end hook has been chosen because we are sure that any transaction has been aborted properly, and we'd still be limited with a hook in proc_exit_prepare() because of that same argument. I am just going to revert the patch. -- Michael --+nBD6E3TurpgldQp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl2T7pYACgkQnvQgOdby QH3n9A//cz/q8KPvGdZBKdFBVBKYCdoszn/jOIPkCp6hGRx1KHV2Cf7mYDBTKdQl QEnrJF0DFlZQ9flqDO8LQDaArdcTQtQ9vsbyptP0K8jbYdtSaBJ5t1WkO0gTXKyb HFjNQGBW/nDfofUxu9Srs5Ogwah5n2k2HCOKM9yPrCqxfeaF1CBwxYnk9sw2GzC9 BQ2gp98EMCh7lAexvuzmsCOtqkW5nqo4FHApf9wLgH2QKWHiVAKTEFXtMOr93ycp Q8S10L0PwwaQLrLce2sgrsYUGX2AstCFcAvrxNJ9b3Udts5ZCjpFp1UNCyBMh8+e UXNbrjwgGVJBhAcyZojSfJ3IqC/JX4ySeh4FVepIc2P7s1SXBIyooZ+RKn8ckuss aYl6OatZanvNKIz94afCBCSZq9XHuWe7umgVfu0rYUs8y6XKR00IMTzFtqN6SuJX xt7fo7FYomq3mBCKluLqGKeTKpJHIgJFP6sO5yqPnhif9zwYiINtswmrdY5nnjsE 9JZHQ06eZb7DOQDXAs/ohVSmZPXlEkqXRheB647TBKBbD6cGuvB19AGtbfs0dS21 Mmd5O7O60ugW1L1SwZzPSjo6GZj1k7zDI+UOzX/Z+5D2N4rc2DsEESWD6g8yeWae fwqt7pqsYDm69YbYV4XiYOAIyh61e15pa8/4HLErgSn34SI5eaU= =lxOO -----END PGP SIGNATURE----- --+nBD6E3TurpgldQp--