Sorry to come to this late.
The userid being printed is from UserMapping. The new API
GetUserMappingById() allows an FDW to get user mapping by its OID. This API
is intended to be used by FDWs to fetch the user mapping inferred by the
core for given join between foreign relations. In such user mapping object
, userid may be -1 for a public user mapping. I think using %u for -1 will
print it as largest integer. Would that create confusion for users?
On Mon, Feb 8, 2016 at 9:37 PM, Tom Lane <t...@sss.pgh.pa.us> wrote:
> Etsuro Fujita <fujita.ets...@lab.ntt.co.jp> writes:
> > Here is a patch to use %u not %d to print umid and userid.
> Pushed, thanks.
> regards, tom lane
> Sent via pgsql-hackers mailing list (email@example.com)
> To make changes to your subscription:
The Postgres Database Company