forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1a5594b
committed
Call pqPipelineFlush from PQsendFlushRequest
When PQsendFlushRequest() was added by commit69cf1d5, we arguedagainst adding a PQflush() call in it[1]. This is still the rightdecision: if the user wants a flush to occur, they can just call that.However, we failed to realize that the message bytes could still begiven to the kernel for transmitting when this can be made withoutblocking. That's what pqPipelineFlush() does, and it is done for everysingle other message type sent by libpq, so do that.(When the socket is in blocking mode this may indeed block, but that'swhat all the other libpq message-sending routines do, too.)[1]https://www.postgresql.org/message-id/202106252352.5ca4byasfun5%40alvherre.pgsqlAuthor: Jelte Fennema-Nio <postgres@jeltef.nl>Discussion:https://postgr.es/m/CAGECzQTxZRevRWkKodE-SnJk1Yfm4eKT+8E4Cyq3MJ9YKTnNew@mail.gmail.com1 parentcd694f6 commit1a5594b
1 file changed
+8
-0
lines changedLines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3316 | 3316 |
| |
3317 | 3317 |
| |
3318 | 3318 |
| |
| 3319 | + | |
| 3320 | + | |
| 3321 | + | |
| 3322 | + | |
| 3323 | + | |
| 3324 | + | |
| 3325 | + | |
| 3326 | + | |
3319 | 3327 |
| |
3320 | 3328 |
| |
3321 | 3329 |
| |
|
0 commit comments
Comments
(0)