Mark set_repmgrd_pid() as "RETURNS NULL ON NULL INPUT"

When unsetting the PID, we'll want to set the pidfile to NULL rather
than an empty string.
This commit is contained in:
Ian Barwick
2019-08-19 20:15:30 +09:00
parent 28f4536372
commit 507b27c05d
3 changed files with 4 additions and 2 deletions

View File

@@ -1920,7 +1920,7 @@ repmgrd_set_pid(PGconn *conn, pid_t repmgrd_pid, const char *pidfile)
else
{
appendPQExpBufferStr(&query,
" '')");
" NULL)");
}
res = PQexec(conn, query.data);