PostgreSQL中客户端连接到服务器端之后产生的进程情况

为了高效地服务多个客户端,PostgreSQL服务器为每个客户端启动一个新的“后端”进程。在当前实现中,一旦检测到传入连接,就会立即创建一个新的子进程。从协议的角度来看,术语“后端”和“服务器”可以互换使用;同样,“前端”和“客户端”也可以互换。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 作者:瀚高PG实验室 (Highgo PG Lab)- 亨特少校

参考文章:PostgreSQL: Documentation: 10: Chapter 52. Frontend/Backend Protocol

In order to serve multiple clients efficiently, the server launches a new “backend” process for each client. 
In the current implementation, a new child process is created immediately after an incoming connection is detected. 
This is transparent to the protocol, however. For purposes of the protocol, the terms “backend” and “server” are interchangeable; 
likewise “frontend” and “client” are interchangeable.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值