mirror of
https://github.com/postgres/postgres.git
synced 2025-05-06 19:59:18 +03:00
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
22 lines
560 B
C
22 lines
560 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* fastpath.h
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* src/include/tcop/fastpath.h
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef FASTPATH_H
|
|
#define FASTPATH_H
|
|
|
|
#include "lib/stringinfo.h"
|
|
|
|
extern int GetOldFunctionMessage(StringInfo buf);
|
|
extern void HandleFunctionRequest(StringInfo msgBuf);
|
|
|
|
#endif /* FASTPATH_H */
|