pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Masahiro Ikeda <ikedamsh@oss.nttdata.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: Rethink the wait event names for postgres_fdw, dblink and etc
Date: Thu, 5 Oct 2023 10:28:29 +0900
Message-ID: <ZR4RPXBA5AvrEfGu@paquier.xyz> (raw)
In-Reply-To: <ZR0gHNUR_oMVn8jx@paquier.xyz>
References: <197bce267fa691a0ac62c86c4ab904c4@oss.nttdata.com>
	<ZN79kznGqo7e6Ivn@paquier.xyz>
	<b6c00f40075040dcb71f38360a6f45d0@oss.nttdata.com>
	<ZR0gHNUR_oMVn8jx@paquier.xyz>

On Wed, Oct 04, 2023 at 05:19:40PM +0900, Michael Paquier wrote:
> I am lacking a bit of time now, but I have applied the bits for
> test_shm_mq and worker_spi.  Note that I have not added tests for
> test_shm_mq as it may be possible that the two events (for the
> bgworker startup and for a message to be queued) are never reached
> depending on the timing.  I'll handle the rest tomorrow, with likely
> some adjustments to the tests.  (I may as well just remove them, this
> API is already covered by worker_spi.)

After sleeping on it, I've taken the decision to remove the tests.  As
far as I have tested, this was stable, but this does not really
improve the test coverage as WaitEventExtensionNew() is covered in
worker_spi.  I have done tweaks to the docs and the variable names,
and applied that into its own commit.

Note as well that the docs of dblink were wrong for DblinkGetConnect:
the wait event could be seen in other functions than dblink() and
dblink_exec().
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (6+ messages)  latest in thread

Message-ID: <ZR4RPXBA5AvrEfGu@paquier.xyz>
Permalink:  ../ZR4RPXBA5AvrEfGu@paquier.xyz/
Also on:    postgresql.org/message-id/ZR4RPXBA5AvrEfGu@paquier.xyz

 · 

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: michael@paquier.xyz, ikedamsh@oss.nttdata.com
  Subject: Re: Rethink the wait event names for postgres_fdw, dblink and etc
  In-Reply-To: <ZR4RPXBA5AvrEfGu@paquier.xyz>
  References: <197bce267fa691a0ac62c86c4ab904c4@oss.nttdata.com> <ZN79kznGqo7e6Ivn@paquier.xyz> <b6c00f40075040dcb71f38360a6f45d0@oss.nttdata.com> <ZR0gHNUR_oMVn8jx@paquier.xyz> <ZR4RPXBA5AvrEfGu@paquier.xyz>

* 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