Skip to content
Snippets Groups Projects
Commit 0ba12d68 authored by Michael Paquier's avatar Michael Paquier
Browse files

pg_rep_state: Uniformize invalid OID checks

parent 11901655
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -101,7 +101,7 @@ pg_syncrep_state(PG_FUNCTION_ARGS)
continue;
 
/* Ignore backends with unassigned role */
if (proc->roleId == InvalidOid)
if (!OidIsValid(proc->roleId))
continue;
 
/* Check if process really exists */
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment