Re: [HACKERS] User authentication bug? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] User authentication bug?
Date
Msg-id 19677.902021237@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] User authentication bug?  (Maarten Boekhold <maartenb@dutepp2.et.tudelft.nl>)
List pgsql-hackers
Maarten Boekhold <maartenb@dutepp2.et.tudelft.nl> writes:
> I'm so happy to know this. It means I'm not stupid. But I think I get it
> just a little bit. There's a lot of handling there to be able to handle
> more than 1 connection at a time, so therefore function pointers are
> stored to remember were the next input packet it supposed to be handled.

Right, the postmaster keeps a function pointer in the data for each
connection (specifically, in the Packet struct declared in libpq-be.h)
that defines what to do next on that connection ("next" meaning after
the current packet send or receive operation has been finished).
It can be a little confusing but I doubt it's worth changing.

(On the other hand, I'm used to that sort of thing from a dank past
of writing interrupt service routines.  If you're not, it might be
a lot confusing.)

            regards, tom lane

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] User authentication bug?
Next
From: Brett McCormick
Date:
Subject: SPI_connect always fails.