Re: ToDo: API for SQL statement execution other than SPI

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: ToDo: API for SQL statement execution other than SPI
Дата
Msg-id CA+Tgmoa3iPz-AJTtka+ZQCetqojhp0w6bBvK_=Fd0AUSFz9x1A@mail.gmail.com
обсуждение исходный текст
Ответ на ToDo: API for SQL statement execution other than SPI  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: ToDo: API for SQL statement execution other than SPI  (Vibhor Kumar <vibhor.kumar@enterprisedb.com>)
Список pgsql-hackers
On Wed, Jun 29, 2016 at 1:55 AM, Pavel Stehule <pavel.stehule@gmail.com> wrote:
> I am writing two background workers - autoreindex and scheduler. In Both I
> need to execute queries from top level. I had to wrote redundant code
> https://github.com/okbob/autoreindex/blob/master/utils.c
> autoreindex_execute_sql_command .Same code is in pglogical. Some statements
> - like VACUUM or REINDEX CONCURRENTLY is not possible call from SPI.
>
> Can be nice to have this function in core.

pg_background handles this.  Somebody might want to resurrect that patch.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Postgres_fdw join pushdown - wrong results with whole-row reference
Следующее
От: Robert Haas
Дата:
Сообщение: Re: fixing consider_parallel for upper planner rels