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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Use %u to print user mapping's umid and userid
Дата
Msg-id 20793.1454993490@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Use %u to print user mapping's umid and userid  (Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>)
Ответы Re: Use %u to print user mapping's umid and userid  (Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>)
Список pgsql-hackers
Ashutosh Bapat <ashutosh.bapat@enterprisedb.com> writes:
> 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.

If that is actually how it works, it's broken and I'm going to insist
on a redesign.  There is nothing anywhere that says that 0xffffffff
is not a valid OID.
        regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: Use %u to print user mapping's umid and userid
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: pgbench stats per script & other stuff