Re: BUG #16985: ModifyWaitEvent function does not have pgsocket fd and void *user_data arguments

From: RekGRpth <rekgrpth(at)gmail(dot)com>
To: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
Cc: PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: BUG #16985: ModifyWaitEvent function does not have pgsocket fd and void *user_data arguments
Date: 2021-04-28 05:37:15
Message-ID: CAPgh2m+nZoOzNatz9GcbRbJNf5wxo0APUrUhDDFq3n3WvKjCxw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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(dot)munro(at)gmail(dot)com>:
>
> On Wed, Apr 28, 2021 at 12:28 AM PG Bug reporting form
> <noreply(at)postgresql(dot)org> wrote:
> > The following bug has been logged on the website:
> >
> > Bug reference: 16985
> > Logged by: RekGRpth
> > Email address: rekgrpth(at)gmail(dot)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.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Thomas Munro 2021-04-28 05:43:27 Re: Since '2001-09-09 01:46:40'::timestamp microseconds are lost when extracting epoch
Previous Message Neil Chen 2021-04-28 05:22:17 Re: BUG #16982: pg_rewind cannot deal with configuration files (postgresql.conf) located outside data directory