On Mon, Dec 12, 2016 at 4:32 PM, Heikki Linnakangas <hlinn...@iki.fi> wrote:
> That test is broken. It looks like the x"$VAR" = x"constant" idiom, but the
> left side of the comparison doesn't have the 'x'. Oops.
> This makes me wonder if we should work a bit harder to get a good error
> message, if acquiring a random number fails for any reason. This needs to
> work in the frontend as well backend, but we could still have an elog(LOG,
> ...) there, inside an #ifndef FRONTEND block.
Yeah, this has been itching me as well. We could allocate an error
string in a psprintf()'d string and let the callers of
pg_strong_backend() use it as they are responsible for the error
handling. What do you think?
Sent via pgsql-hackers mailing list (email@example.com)
To make changes to your subscription: