diff options
Diffstat (limited to 'src/backend/tcop/fastpath.c')
-rw-r--r-- | src/backend/tcop/fastpath.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/backend/tcop/fastpath.c b/src/backend/tcop/fastpath.c index 869e0e1391f..52d00da8502 100644 --- a/src/backend/tcop/fastpath.c +++ b/src/backend/tcop/fastpath.c @@ -73,7 +73,7 @@ static int16 parse_fcall_arguments_20(StringInfo msgBuf, struct fp_info * fip, * The caller should already have initialized buf to empty. * ---------------- */ -static int +int GetOldFunctionMessage(StringInfo buf) { int32 ibuf; @@ -279,20 +279,6 @@ HandleFunctionRequest(StringInfo msgBuf) char msec_str[32]; /* - * Read message contents if not already done. - */ - if (PG_PROTOCOL_MAJOR(FrontendProtocol) < 3) - { - if (GetOldFunctionMessage(msgBuf)) - { - ereport(COMMERROR, - (errcode(ERRCODE_PROTOCOL_VIOLATION), - errmsg("unexpected EOF on client connection"))); - return EOF; - } - } - - /* * Now that we've eaten the input message, check to see if we actually * want to do the function call or not. It's now safe to ereport(); we * won't lose sync with the frontend. |