| От | Jim Nasby |
|---|---|
| Тема | Re: clearing of the transactions shown in pg_locks |
| Дата | |
| Msg-id | 55415F72.7030604@BlueTreble.com обсуждение исходный текст |
| Ответ на | clearing of the transactions shown in pg_locks (Mitu Verma <mitu.verma@ericsson.com>) |
| Список | pgsql-general |
On 4/29/15 12:32 AM, Mitu Verma wrote: > This script first does the indexing then it deletes the entries from the > table. Now issue is that this script is taking lot of time and has > acquired some locks also. Nor sure if it is happening due to indexing or > what. Mixing DDL with bulk DML operations is not a recipe for good concurrency. For that matter, running DDL on a recurring basis isn't good either. BTW, you might want to look at using PgQ to do the queuing; it has different methods of maintaining it's queues so you don't run into these sort of problems. -- Jim Nasby, Data Architect, Blue Treble Consulting Data in Trouble? Get it in Treble! http://BlueTreble.com
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера