Introduce FrontendProtocollIsV3 shorthand for PG_PROTOCOL_MAJOR(FrontendProtocol) speedup/frontend_protocol
authorAndres Freund <[email protected]>
Thu, 28 Apr 2011 19:22:50 +0000 (21:22 +0200)
committerAndres Freund <[email protected]>
Thu, 28 Apr 2011 19:22:50 +0000 (21:22 +0200)
commit1b5a9138b48e7edd42db3f659db69de33671a446
treebc96ca8fae011e53fb7e50b5186678a5eb39e197
parentc02d5b7c27d740830379244db4b9ef111bbf0fc8
Introduce FrontendProtocollIsV3 shorthand for PG_PROTOCOL_MAJOR(FrontendProtocol)

Using the long version in postgres.c SocketBackend introduces
noticeable pipeline stalls.

pgbench -v -h /tmp/ -U andres -T 200 -c3 -j3 -s 30 -S -M prepared pgbench
goes from 23221 to 25128
src/backend/postmaster/postmaster.c
src/backend/tcop/postgres.c
src/backend/utils/init/globals.c
src/include/libpq/libpq-be.h