diff options
-rw-r--r-- | contrib/postgres_fdw/connection.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/postgres_fdw/connection.c b/contrib/postgres_fdw/connection.c index 78cea232d50..12d1fec0e82 100644 --- a/contrib/postgres_fdw/connection.c +++ b/contrib/postgres_fdw/connection.c @@ -2309,7 +2309,8 @@ pgfdw_conn_check(PGconn *conn) if (result < 0) return -1; - return (input_fd.revents & POLLRDHUP) ? 1 : 0; + return (input_fd.revents & + (POLLRDHUP | POLLHUP | POLLERR | POLLNVAL)) ? 1 : 0; } #else return 0; |