Re: FDW state from plan time

Поиск
Список
Период
Сортировка
От Dave Page
Тема Re: FDW state from plan time
Дата
Msg-id BANLkTi=+tSJEBu6dnF2YBB4vYxPo8-tuWw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: FDW state from plan time  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Список pgsql-hackers
On Sun, Apr 3, 2011 at 7:05 PM, Heikki Linnakangas
<heikki.linnakangas@enterprisedb.com> wrote:
> On 03.04.2011 19:38, Tom Lane wrote:
>>
>> Dave Page<dpage@pgadmin.org>  writes:
>>>
>>> I can't help thinking I must be missing something obvious here, but is
>>> there any way to persist some data from PlanForeignScan to at least
>>> BeginForeignScan in an FDW? I'm aware of fdwplan->fdw_private, but at
>>> that needs to be copyObject compatible, it's not much use to me.
>
> If you have to, you can encapsulate arbitrary data in a bytea const.
>
>> Or you could use a hash of some other identifying information (perhaps
>> the OID of the foreign server would be sufficient ID for a connection?).
>
> Foreign server + user id, probably. That's what I would recommend in this
> case.

And database in some cases, but yes :-)

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Dave Page
Дата:
Сообщение: Re: FDW state from plan time
Следующее
От: Fujii Masao
Дата:
Сообщение: synchronous_commit and synchronous_replication Re: [COMMITTERS] pgsql: Efficient transaction-controlled synchronous replication.