A Postgres session consists of the following cooperating processes; a server process manging database files, accepting connections to the database from client applications, and performing database actions on behalf of clients. The database server program is called Postgres. The user's client program talks to Postgres and instructs actions to be performed on the database.
If client and server are on different hosts, they communicate using TCP/IP.
The Postgres server can handle multiple connections from clients, in which case it forks a new process for each connection. The supervisor server process is always running, whereas client and associate server processes come and go.
A Postgres user account is needed to create a new database in Postgres. This requires the right role to be assigned otherwise a createdb requests will end with "role \"xyz\" does not exist".
No comments:
Post a Comment