pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #16985: ModifyWaitEvent function does not have pgsocket fd and void *user_data arguments
3+ messages / 3 participants
[nested] [flat]

* BUG #16985: ModifyWaitEvent function does not have pgsocket fd and void *user_data arguments
@ 2021-04-27 11:32  PG Bug reporting form <noreply@postgresql.org>
  0 siblings, 1 reply; 3+ messages in thread

From: PG Bug reporting form @ 2021-04-27 11:32 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org; +Cc: rekgrpth@gmail.com

The following bug has been logged on the website:

Bug reference:      16985
Logged by:          RekGRpth
Email address:      rekgrpth@gmail.com
PostgreSQL version: 13.2
Operating system:   docker alpine
Description:        

How I can modify WaitEventSet if ModifyWaitEvent function does not have
pgsocket fd and void *user_data arguments?



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #16985: ModifyWaitEvent function does not have pgsocket fd and void *user_data arguments
@ 2021-04-28 00:59  Thomas Munro <thomas.munro@gmail.com>
  parent: PG Bug reporting form <noreply@postgresql.org>
  0 siblings, 1 reply; 3+ messages in thread

From: Thomas Munro @ 2021-04-28 00:59 UTC (permalink / raw)
  To: rekgrpth@gmail.com; +Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>

On Wed, Apr 28, 2021 at 12:28 AM PG Bug reporting form
<noreply@postgresql.org> wrote:
> The following bug has been logged on the website:
>
> Bug reference:      16985
> Logged by:          RekGRpth
> Email address:      rekgrpth@gmail.com
> PostgreSQL version: 13.2
> Operating system:   docker alpine
> Description:
>
> How I can modify WaitEventSet if ModifyWaitEvent function does not have
> pgsocket fd and void *user_data arguments?

Hi,

This sounds like a topic for the pgsql-hackers mailing list.

The fd and user_data can't be changed currently.  Only the set of
events (wait for read, write, both) or the latch can be changed, and
you identify which WaitEvent you're talking about by position (see
return value of AddWaitEventToSet()).  Hopefully in the next release,
we'll be able to remove one fd and add another -- perhaps that's what
you want to be able to do?  I had a proposal like that buried in the
middle of a whole bunch of related patches at [1], see
"RemoveWaitEvent", but that piece didn't make it into PostgreSQL 14.





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #16985: ModifyWaitEvent function does not have pgsocket fd and void *user_data arguments
@ 2021-04-28 05:37  RekGRpth <rekgrpth@gmail.com>
  parent: Thomas Munro <thomas.munro@gmail.com>
  0 siblings, 0 replies; 3+ messages in thread

From: RekGRpth @ 2021-04-28 05:37 UTC (permalink / raw)
  To: Thomas Munro <thomas.munro@gmail.com>; +Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>

Ok, thanks.

I hope in next release it will be used doubly linked list instead of
WaitEvent c-array

ср, 28 апр. 2021 г. в 06:00, Thomas Munro <thomas.munro@gmail.com>:
>
> On Wed, Apr 28, 2021 at 12:28 AM PG Bug reporting form
> <noreply@postgresql.org> wrote:
> > The following bug has been logged on the website:
> >
> > Bug reference:      16985
> > Logged by:          RekGRpth
> > Email address:      rekgrpth@gmail.com
> > PostgreSQL version: 13.2
> > Operating system:   docker alpine
> > Description:
> >
> > How I can modify WaitEventSet if ModifyWaitEvent function does not have
> > pgsocket fd and void *user_data arguments?
>
> Hi,
>
> This sounds like a topic for the pgsql-hackers mailing list.
>
> The fd and user_data can't be changed currently.  Only the set of
> events (wait for read, write, both) or the latch can be changed, and
> you identify which WaitEvent you're talking about by position (see
> return value of AddWaitEventToSet()).  Hopefully in the next release,
> we'll be able to remove one fd and add another -- perhaps that's what
> you want to be able to do?  I had a proposal like that buried in the
> middle of a whole bunch of related patches at [1], see
> "RemoveWaitEvent", but that piece didn't make it into PostgreSQL 14.





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2021-04-28 05:37 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-04-27 11:32 BUG #16985: ModifyWaitEvent function does not have pgsocket fd and void *user_data arguments PG Bug reporting form <noreply@postgresql.org>
2021-04-28 00:59 ` Thomas Munro <thomas.munro@gmail.com>
2021-04-28 05:37   ` RekGRpth <rekgrpth@gmail.com>

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