On Mon, Mar 21, 2016 at 10:13 PM, Robert Haas <robertmh...@gmail.com> wrote:
> On Tue, Mar 1, 2016 at 12:38 AM, Michael Paquier
> <michael.paqu...@gmail.com> wrote:
> > Thoughts? I have registered that in the CF app, and a patch is attached.
> It is very difficult to believe that this is a good idea:
> --- a/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c
> +++ b/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c
> @@ -445,6 +445,7 @@ libpqrcv_PQexec(const char *query)
> if (PQresultStatus(lastResult) == PGRES_COPY_IN ||
> PQresultStatus(lastResult) == PGRES_COPY_OUT ||
> PQresultStatus(lastResult) == PGRES_COPY_BOTH ||
> + PQresultStatus(lastResult) == PGRES_FATAL_ERROR ||
> PQstatus(streamConn) == CONNECTION_BAD)
> I mean, why would it be a good idea to blindly skip over fatal errors?
I think it is not about skipping the FATAL error, rather to stop trying to
get further results on FATAL error. This is to ensure that OOM error is
reported rather that ignored. There has been discussion about this
previously as well .