]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Remove dead code and fix comments in fast-path function handling.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 6 Apr 2017 06:09:39 +0000 (09:09 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 6 Apr 2017 06:11:18 +0000 (09:11 +0300)
commit39cedd8d95930a7689a7e06dc7730727915a6052
tree168898ce9c129e0f00fe302877078bb1e86c7d6a
parentd68a2b20ae2c3a55ba934a0d9a669592a212f351
Remove dead code and fix comments in fast-path function handling.

HandleFunctionRequest() is no longer responsible for reading the protocol
message from the client, since commit 2b3a8b20c2. Fix the outdated
comments.

HandleFunctionRequest() now always returns 0, because the code that used
to return EOF was moved in 2b3a8b20c2. Therefore, the caller no longer
needs to check the return value.

Reported by Andres Freund. Backpatch to all supported versions, even though
this doesn't have any user-visible effect, to make backporting future
patches in this area easier.

Discussion: https://www.postgresql.org/message-id/20170405010525.rt5azbya5fkbhvrx@alap3.anarazel.de
src/backend/tcop/fastpath.c
src/backend/tcop/postgres.c
src/include/tcop/fastpath.h