Re: postgres_fdw : disable extended queries

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: postgres_fdw : disable extended queries
Дата
Msg-id A737B7A37273E048B164557ADEF4A58B539610F9@ntex2010a.host.magwien.gv.at
обсуждение исходный текст
Ответ на postgres_fdw : disable extended queries  (Nicolas Paris <niparisco@gmail.com>)
Ответы Re: postgres_fdw : disable extended queries  (Nicolas Paris <niparisco@gmail.com>)
Список pgsql-general
Nicolas Paris wrote:
> I have a 9.6 pg instance, and I am trying to link a foreign postgresql database that do not accept
> extended queries. (only simple queries https://www.postgresql.org/docs/current/static/protocol.html )
> 
> When I run a query against the foreign pg instance thought postres_fdw, it looks like it sends a
> transaction containing
> 
> DECLARE c1 CURSOR FOR
> SELECT customer_id FROM foodmart.customer
> 
> -> is there a way to run a simple query with postgres_fdw such:
> 
> SELECT customer_id FROM foodmart.customer

No, it is part of the design that cursors are used, so that rows can be
fetched one at a time and concurrent DML statements can be run.

You might consider using dblink.

Yours,
Laurenz Albe

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

Предыдущее
От: Asif Naeem
Дата:
Сообщение: Re: Errors while installing PostGIS by an unusual method
Следующее
От: Nicolas Paris
Дата:
Сообщение: Re: postgres_fdw : disable extended queries