Andres Freund <and...@anarazel.de> writes: > In a couple tests I (IIRC others as well) had the problem that a config reload > isn't actually synchronous. I.e. a sequence like
> $node_primary->reload; > $node_primary->safe_psql('postgres',...) > isn't actually guaranteed to observe the config as reloaded in the the > safe_psql(). Brute force way: s/reload/restart/ Less brute force: wait for "SHOW variable-you-changed" to report the value you expect. regards, tom lane