git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 6be39d7) | patch
libpq: Trace all messages received from the server
2024年8月16日 17:23:18 +0000 (13:23 -0400)
2024年8月16日 17:23:18 +0000 (13:23 -0400)
commit b8b3f861fbd7ff40055225ec48cec97df925ff04
libpq: Trace all messages received from the server

Not all messages that libpq received from the server would be sent
through our message tracing logic. This commit tries to fix that by
introducing a new function pqParseDone which make it harder to forget
about doing so.

The messages that we now newly send through our tracing logic are:

- CopyData (received by COPY TO STDOUT)
- Authentication requests
- NegotiateProtocolVersion
- Some ErrorResponse messages during connection startup
- ReadyForQuery when received after a FunctionCall message

Author: Jelte Fennema-Nio <postgres@jeltef.nl>
Discussion: https://postgr.es/m/CAGECzQSoPHtZ4xe0raJ6FYSEiPPS+YWXBhOGo+Y1YecLgknF3g@mail.gmail.com
src/interfaces/libpq/fe-auth.c diff | blob | blame | history
src/interfaces/libpq/fe-connect.c diff | blob | blame | history
src/interfaces/libpq/fe-misc.c diff | blob | blame | history
src/interfaces/libpq/fe-protocol3.c diff | blob | blame | history
src/interfaces/libpq/fe-trace.c diff | blob | blame | history
src/interfaces/libpq/libpq-int.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /