Concurrent Inserts

Поиск
Список
Период
Сортировка
От sri harsha
Тема Concurrent Inserts
Дата
Msg-id CAP6OGLEAx_o1p=1D0NBu=0b8ARROH60dRzVGc3ca3QpAXixKrw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Concurrent Inserts  (Albe Laurenz <laurenz.albe@wien.gv.at>)
Список pgsql-general
Hi,

   Is there any way to stop concurrent inserts to happen on a single table ?? 

Query 1 : INSERT INTO TABLE_A SELECT * FROM TABLE1;
Query 2 : INSERT INTO TABLE_A SELECT * FROM TABLE2;
Query 3 : SELECT * FROM TABLE_A;

Assume i have the above queries. Query 1 and Query 3 can occur concurrently . If one insert is taking place , the other should wait. How do i achieve this ??

   How do the concurrent inserts take place in postgres ?? Is data stored temporarily for both queries separately and then written into the table ??

Thanks,
Harsha

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

Предыдущее
От: deans
Дата:
Сообщение: Re: BDR Error restarted
Следующее
От: Albe Laurenz
Дата:
Сообщение: Re: Concurrent Inserts