Magnus Hagander <magnus(at)hagander(dot)net> writes:> + PGresult *res = ExecuteSqlQueryForSingleRow(fout, "SELECT pg_is_in_recovery()");
That function call needs to be schema-qualified for security.
regards, tom lane