Re: Executing inet_server_addr/port() in parallel workers - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Executing inet_server_addr/port() in parallel workers
Date
Msg-id 1128153.1610464514@sss.pgh.pa.us
Whole thread Raw
In response to Re: Executing inet_server_addr/port() in parallel workers  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
BTW, just for the archives' sake: inet_client_addr() and
inet_client_port() also access MyProcPort, so they'd also have
this issue, except that they're already marked parallel-restricted.
So somebody just missed the server equivalents when marking the
parallel safety of built-in functions.

contrib/sslinfo is also full of uses of MyProcPort, but all its
functions are properly marked parallel-restricted.

I did not see any other risky-looking uses of MyProcPort in a
quick grep.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: O(n^2) system calls in RemoveOldXlogFiles()
Next
From: Justin Pryzby
Date:
Subject: Re: libpq compression