pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jacob Champion <jchampion@timescale.com>
To: Drouvot, Bertrand <bdrouvot@amazon.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Joe Conway <mail@joeconway.com>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: sfrost@snowman.net <sfrost@snowman.net>
Cc: rjuju123@gmail.com <rjuju123@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Cc: andres@anarazel.de <andres@anarazel.de>
Subject: Re: [PATCH] Expose port->authn_id to extensions and triggers
Date: Tue, 23 Aug 2022 10:04:30 -0700
Message-ID: <bbf2b922-4ff7-5c30-e3ef-2a8bdcdd1116@timescale.com> (raw)
In-Reply-To: <c4800477-c877-25ab-3ba8-ab53a1510831@amazon.com>
References: <CAAWbhmi4OHmk0EVBuQrYcwbotF8uFayDVgkL-H-gqrK0XmeSeg@mail.gmail.com>
	<2a1e2717-8c68-3f9e-1e02-32da71deb327@amazon.com>
	<CAAWbhmiRZMBLCKjJV43skOxiBM71P82O2KMJf-n97t4zUtdqDw@mail.gmail.com>
	<127bd019-04f0-313c-551c-d949cdc4ad50@amazon.com>
	<YvjHFPs2yEDiMLVU@paquier.xyz>
	<520bd3ce-334b-b9c2-2130-858fb04ce56f@amazon.com>
	<CAAWbhmgJ-5YHyOO4ioa-q1bDRexiwMBFru6jJVmV+ShUx_0yeQ@mail.gmail.com>
	<2541c086-e370-d114-69a7-b48b05b25471@amazon.com>
	<YwNpWPCx63D8R8gG@paquier.xyz>
	<CAAWbhmjmwz+QYVTANpmOayfST4x1ey1ZALpgjNwqTeMeH9Ssew@mail.gmail.com>
	<YwQ6r35/uNC2lm26@paquier.xyz>
	<c4800477-c877-25ab-3ba8-ab53a1510831@amazon.com>

On 8/23/22 01:53, Drouvot, Bertrand wrote:
> That sounds all good to me, except a typo for the author in the commit 
> message: s/Jocob/Jacob/

Thanks, I missed that on my readthrough! :D

Patch looks good to me, too, with one question:

> @@ -2688,6 +2689,7 @@ InitProcessGlobals(void)                                   
>     MyProcPid = getpid();                                                        
>     MyStartTimestamp = GetCurrentTimestamp();                                    
>     MyStartTime = timestamptz_to_time_t(MyStartTimestamp);                       
> +   memset(&MyClientConnectionInfo, 0, sizeof(MyClientConnectionInfo));          
>                                                                                  
>     /*                                                                           
>      * Set a different global seed in every process.  We want something 

When can we rely on static initialization, and when can't we? Is there a
concern that the memory could have been polluted from before the
postmaster's fork?

Thanks,
--Jacob





view thread (89+ messages)  latest in thread

Message-ID: <bbf2b922-4ff7-5c30-e3ef-2a8bdcdd1116@timescale.com>
Permalink:  ../bbf2b922-4ff7-5c30-e3ef-2a8bdcdd1116@timescale.com/
Also on:    postgresql.org/message-id/bbf2b922-4ff7-5c30-e3ef-2a8bdcdd1116@timescale.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: jchampion@timescale.com, bdrouvot@amazon.com, michael@paquier.xyz, mail@joeconway.com, robertmhaas@gmail.com, tgl@sss.pgh.pa.us, sfrost@snowman.net, rjuju123@gmail.com, andres@anarazel.de
  Subject: Re: [PATCH] Expose port->authn_id to extensions and triggers
  In-Reply-To: <bbf2b922-4ff7-5c30-e3ef-2a8bdcdd1116@timescale.com>
  References: <CAAWbhmi4OHmk0EVBuQrYcwbotF8uFayDVgkL-H-gqrK0XmeSeg@mail.gmail.com> <2a1e2717-8c68-3f9e-1e02-32da71deb327@amazon.com> <CAAWbhmiRZMBLCKjJV43skOxiBM71P82O2KMJf-n97t4zUtdqDw@mail.gmail.com> <127bd019-04f0-313c-551c-d949cdc4ad50@amazon.com> <YvjHFPs2yEDiMLVU@paquier.xyz> <520bd3ce-334b-b9c2-2130-858fb04ce56f@amazon.com> <CAAWbhmgJ-5YHyOO4ioa-q1bDRexiwMBFru6jJVmV+ShUx_0yeQ@mail.gmail.com> <2541c086-e370-d114-69a7-b48b05b25471@amazon.com> <YwNpWPCx63D8R8gG@paquier.xyz> <CAAWbhmjmwz+QYVTANpmOayfST4x1ey1ZALpgjNwqTeMeH9Ssew@mail.gmail.com> <YwQ6r35/uNC2lm26@paquier.xyz> <c4800477-c877-25ab-3ba8-ab53a1510831@amazon.com> <bbf2b922-4ff7-5c30-e3ef-2a8bdcdd1116@timescale.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox