Re: Basic question regarding insert

Поиск
Список
Период
Сортировка
От Anil Menon
Тема Re: Basic question regarding insert
Дата
Msg-id CAHzbRKecaGPLoZM5Lnf_Nhd1QYLU58qxF0zAJ-tihqYirHvr4g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Basic question regarding insert  (John R Pierce <pierce@hogranch.com>)
Список pgsql-general
Thank you John.
That perfectly answered by question.

Regards
Anil

On Sat, Nov 1, 2014 at 2:43 AM, John R Pierce <pierce@hogranch.com> wrote:
On 10/31/2014 3:24 AM, Anil Menon wrote:
I have a very basic question on inserts - I tried to get a good authoritative answer but could not really find one to my satisfaction in the usual places.

TLDR : can (after) insert trigger be run in parallel?

the trigger is run in the context of the connection and transaction that invoked it.    the original INSERT doesn't return til any and all triggers are processed.   OTHER connections can do concurrent inserts to the same tables, as long as you're not using explicit table locks.



-- 
john r pierce                                      37N 122W
somewhere on the middle of the left coast

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

Предыдущее
От: pbj@cmicdo.com
Дата:
Сообщение: Re: [SPAM] - Performance of UPDATE SET = FROM vs UPDATE SET = (SELECT ...)
Следующее
От: Neil Tiffin
Дата:
Сообщение: Help with PostgreSQL 9.4 to expand jsonb int array into table with row numbers