Re: Questions and experiences writing a Foreign Data Wrapper

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Questions and experiences writing a Foreign Data Wrapper
Дата
Msg-id 11805.1311352324@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Questions and experiences writing a Foreign Data Wrapper  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: Questions and experiences writing a Foreign Data Wrapper  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Fri, Jul 22, 2011 at 12:13 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Well, if you read it that way, then CREATE USER MAPPING with an empty
>> option set is a no-op: the behavior of the FDW would be the same whether
>> you'd executed it or not. �Which doesn't seem to me to satisfy the
>> principle of least surprise, nor the letter of the spec.

> I think what they're saying is that they expect the credentials to be
> stored in the user mapping.  But that seems like a fairly silly
> requirement, since it's not difficult to imagine wanting all of your
> local users to connect to the remote side with the same set of
> credentials ...

But if you want that, you'd do CREATE USER MAPPING FOR PUBLIC.  What
disturbs me about this approach is that it'd have the effect of a public
mapping with no options existing by default, and being in fact
impossible to remove.  Now, depending on what the FDW chooses to require
in the way of options, that might not be insecure; but it sure seems
like a foot-gun waiting to fire on somebody.
        regards, tom lane


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Questions and experiences writing a Foreign Data Wrapper
Следующее
От: Robert Haas
Дата:
Сообщение: Re: psql: bogus descriptions displayed by \d+