Postgres Server backend process

Started by Jayadevan Mover 12 years ago2 messagesgeneral
Jump to latest
#1Jayadevan M
maymala.jayadevan@gmail.com

Hello,

I was going through
http://www.postgresql.org/files/developer/tour.pdf and the source at
http://doxygen.postgresql.org/postmaster_8c_source.html

The pdf shows the daemon process doing authentication and spawning a
process to handle the request from the client.
The code has these comments -
"When a request message is received, we now fork() immediately. The child
process performs authentication of the request,"
Now authentication is done by the Backend process and not by the daemon?

Regards,
Jayadevan

#2Laurenz Albe
laurenz.albe@cybertec.at
In reply to: Jayadevan M (#1)
Re: Postgres Server backend process

Jayadevan M wrote:

The code has these comments -
"When a request message is received, we now fork() immediately. The child process performs
authentication of the request,"

Now authentication is done by the Backend process and not by the daemon?

Yes.

The authentication is called in InitPostgres(), which is called in PostgresMain().

Yours,
Laurenz Albe

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general