First phase of FE/BE protocol modifications: new StartupPacket layout
Tom Lane <tgl@sss.pgh.pa.us>
First phase of FE/BE protocol modifications: new StartupPacket layout with variable-width fields. No more truncation of long user names. Also, libpq can now send its environment-variable-driven SET commands as part of the startup packet, saving round trips to server.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/libpq.sgml | modified | +8 −11 |
| src/backend/libpq/auth.c | modified | +9 −8 |
| src/backend/libpq/crypt.c | modified | +11 −5 |
| src/backend/libpq/hba.c | modified | +14 −13 |
| src/backend/postmaster/postmaster.c | modified | +177 −84 |
| src/backend/tcop/postgres.c | modified | +22 −2 |
| src/include/libpq/auth.h | modified | +2 −2 |
| src/include/libpq/hba.h | modified | +1 −3 |
| src/include/libpq/libpq-be.h | modified | +19 −14 |
| src/include/libpq/password.h | deleted | +0 −6 |
| src/include/libpq/pqcomm.h | modified | +28 −26 |
| src/interfaces/libpq/fe-auth.c | modified | +2 −2 |
| src/interfaces/libpq/fe-connect.c | modified | +137 −116 |
| src/interfaces/libpq/libpq-int.h | modified | +4 −6 |
| src/test/regress/expected/interval.out | modified | +1 −1 |
| src/test/regress/sql/interval.sql | modified | +1 −1 |