Re: Use %u to print user mapping's umid and userid

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Use %u to print user mapping's umid and userid
Дата
Msg-id CAB7nPqTfZeB-skop9ow+_tzaWYvCDHq_Vtu6bjfWX2p3WbKyAg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Use %u to print user mapping's umid and userid  (Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>)
Список 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 по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Support for N synchronous standby servers - take 2
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Use %u to print user mapping's umid and userid