Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g5ATK-0000sT-Fq for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Sep 2018 14:07:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g5ATI-0002pJ-19 for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Sep 2018 14:07:20 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g5ATH-0002pC-MV for pgsql-hackers@lists.postgresql.org; Wed, 26 Sep 2018 14:07:19 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g5ATF-0001ve-1J for pgsql-hackers@postgresql.org; Wed, 26 Sep 2018 14:07:18 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w8QE73F2023175; Wed, 26 Sep 2018 10:07:03 -0400 From: Tom Lane To: Bruce Momjian cc: Peter Eisentraut , Michael Paquier , Andres Freund , PostgreSQL-development Subject: Re: transction_timestamp() inside of procedures In-reply-to: <20180926125207.GA10161@momjian.us> References: <20180920234040.GC29981@momjian.us> <20180921045536.GJ1338@paquier.xyz> <20180921051206.bzfiew4nthmunpbj@alap3.anarazel.de> <20180921053425.GM1338@paquier.xyz> <20180921102822.GA22699@momjian.us> <20180921223502.GA18319@momjian.us> <20180926125207.GA10161@momjian.us> Comments: In-reply-to Bruce Momjian message dated "Wed, 26 Sep 2018 08:52:07 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <23173.1537970823.1@sss.pgh.pa.us> Date: Wed, 26 Sep 2018 10:07:03 -0400 Message-ID: <23174.1537970823@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Bruce Momjian writes: > On Wed, Sep 26, 2018 at 02:38:25PM +0200, Peter Eisentraut wrote: >> We could certainly address this by adding three or four or five new >> timestamps that cover all these varieties. But perhaps it's worth >> asking what these timestamps are useful for and which ones we really need. > Frankly, we might be fine with just documenting it and see if anyone > complains. I'm not for adding a bunch of new action-start timestamps without very clear use-cases for them, because each one we add means more gettimeday() overhead that might or might not ever be useful. I agree that it would be surprising for transaction timestamp to be newer than statement timestamp. So for now at least, I'd be satisfied with documenting the behavior. regards, tom lane