Re: Does PG support bulk operation in embedded C

Поиск
Список
Период
Сортировка
Искать
От
Michael Paquier
Тема
Re: Does PG support bulk operation in embedded C
Дата
в 00:44:00
Msg-id
CAB7nPqQLPkGwLHTU5nHsMsosryuzqWSAbS5U4CFVagQGHsQ=oQ@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Does PG support bulk operation in embedded C "Ravi Krishna" <srkrishna@gmx.com>
Re: Does PG support bulk operation in embedded C "Joshua D. Drake" <jd@commandprompt.com>
Re: [SQL] Does PG support bulk operation in embedded C "Ravi Krishna" <srkrishna@gmx.com>
Re: [SQL] Does PG support bulk operation in embedded C "Joshua D. Drake" <jd@commandprompt.com>
Re: Does PG support bulk operation in embedded C Michael Paquier <michael.paquier@gmail.com>
On Wed, May 20, 2015 at 8:47 AM, Ravi Krishna  wrote:
> Essentially in one single sql call, we can do
> -- Add new rows
> -- Update a set of rows where each row is identified by a bookmark
> -- Delete a set of rows where each row is identified by a bookmark
> -- Fetch a set of rows where each row is identified by a bookmark
>
> This gives tremendous performance benefits as the network round trip is
> avoided for each sql.
>
> I am looking for an equivalent of this in PG and C language.

What you are looking at could be accomplished with a user-defined function:
http://www.postgresql.org/docs/devel/static/xfunc.html
Perhaps you are looking for something in C, now it would be less
complex to do it for example with pl/pgsql or another language, and
call it from a C client with a correct set of arguments satisfying
your needs.
-- 
Michael

В списке pgsql-general по дате отправления
От: Joshua D. Drake
Дата:
От: Venkata Balaji N
Дата:
Сообщение: Re: pg_xlog Concern
FAQ