Re: Questions and experiences writing a Foreign Data Wrapper

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Questions and experiences writing a Foreign Data Wrapper
Дата
Msg-id 2426.1311432156@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Questions and experiences writing a Foreign Data Wrapper  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: Questions and experiences writing a Foreign Data Wrapper
Список pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> What does the standard say?

Well, there is not a statement in so many words that you have to have a
relevant USER MAPPING to use a foreign table.  But the spec does specify
that an FDW's ConnectServer function takes a UserHandle as one input
parameter and should throw an exception if that handle isn't valid.
And as far as I can tell a UserHandle can only be created from a
relevant USER MAPPING entry.  So I think the behavior I'm arguing for
would emerge from an FDW that was built using the spec-defined API.
We only have an opportunity to argue about it because we chose to
invent our own FDW API.
        regards, tom lane


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Problem with pg_upgrade's directory write check on Windows
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Questions and experiences writing a Foreign Data Wrapper