pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedMore about deadlock
2+ messages / 2 participants
[nested] [flat]
* More about deadlock
@ 2005-12-06 12:20 Vit Timchishin <tivv@gtech-ua.com>
0 siblings, 1 reply; 2+ messages in thread
From: Vit Timchishin @ 2005-12-06 12:20 UTC (permalink / raw)
To: pgsql-jdbc
Hello.
I've now got more details on my deadlock. Here is what I have at the time it occurs:
umh=# select * from pg_locks where transaction=1119237;
relation | database | transaction | pid | mode | granted
----------+----------+-------------+-------+---------------+---------
| | 1119237 | 18880 | ShareLock | f
| | 1119237 | 18404 | ExclusiveLock | t
(2 rows)
Can anyone tell me what are this "transaction" locks, when they are taken and why do I have a deadlock
here.
С уважением,
Виталий Валериевич Тимчишин,
Технический Директор
ООО "Голден Технолоджис"
http://www.gtech-ua.com
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: More about deadlock
@ 2005-12-06 17:07 Tom Lane <tgl@sss.pgh.pa.us>
parent: Vit Timchishin <tivv@gtech-ua.com>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2005-12-06 17:07 UTC (permalink / raw)
To: Vit Timchishin <tivv@gtech-ua.com>; +Cc: pgsql-jdbc
"Vit Timchishin" <tivv@gtech-ua.com> writes:
> Can anyone tell me what are this "transaction" locks, when they are taken and why do I have a deadlock
> here.
Foreign-key update deadlock maybe? If so, updating to 8.1 is probably
a good solution. Previous versions took exclusive row locks on
referenced rows, and so you could easily get a deadlock on those row
locks.
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2005-12-06 17:07 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-12-06 12:20 More about deadlock Vit Timchishin <tivv@gtech-ua.com>
2005-12-06 17:07 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox