Re: Use %u to print user mapping's umid and userid - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Use %u to print user mapping's umid and userid
Date
Msg-id CAB7nPqTfZeB-skop9ow+_tzaWYvCDHq_Vtu6bjfWX2p3WbKyAg@mail.gmail.com
Whole thread Raw
In response to Re: Use %u to print user mapping's umid and userid  (Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>)
List pgsql-hackers
On Tue, Feb 9, 2016 at 1:22 PM, Ashutosh Bapat
<ashutosh.bapat@enterprisedb.com> wrote:
> 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 am a bit surprised by this sentence, UserMapping->userid is an Oid,
and those are unsigned. Could you clarify?
-- 
Michael



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Support for N synchronous standby servers - take 2
Next
From: Tom Lane
Date:
Subject: Re: Use %u to print user mapping's umid and userid