table locking.. FK tables locking on insert

Поиск
Список
Период
Сортировка
От Ati Rosselet
Тема table locking.. FK tables locking on insert
Дата
Msg-id 1067370603.15505.5.camel@marvin.clarnet.hu
обсуждение исходный текст
Ответы Re: table locking.. FK tables locking on insert
Список pgsql-general
I have several tables with common FKs.. the problem occurs when
performing a large number of inserts on any of the tables at the same
time.  The first to start inserting seems to get a lock on the
referenced FK tables and doesn't release them until its done, forcing
the other apps to just wait... and wait..since they also seem to want a
lock for their FK tables..... something just doesnt seem right here :(

when I remove the FKs, everything goes fine.. but I need my foreign
keys.. really I do.

What does postgres do here?  or is the problem in the jdbc driver.. or
maybe the server? (using Jboss 3.2.1, hibernate and 7.3.2 postgres)..

any ideas?


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

Предыдущее
От: BenLaKnet
Дата:
Сообщение: Re: [SQL] connectby
Следующее
От: Lynn.Tilby@asu.edu
Дата:
Сообщение: Attribute 'rtrim' is repeated