Read Lock For Foreign Key - Mailing list pgsql-general

From Jon Swinth
Subject Read Lock For Foreign Key
Date
Msg-id 200208131853.g7DIrLM02581@localhost.localdomain
Whole thread Raw
Responses Re: Read Lock For Foreign Key
Re: Read Lock For Foreign Key
List pgsql-general
How come having foreign keys take out a read lock on a parent row rather than
a write lock is not on the todo list?  I had someone tell me that this is
difficult because the SQL standard does not include syntax for read lock.
Does the fact that it will be difficult mean that it isn't needed?

I'm having trouble getting Postgre to scale when the db is properly
normalized and related and there are many clients.  One of the main
contention points is with the product table.  When a product first comes out,
there may be many many people that are interested.  Because the FK triggers
take out a write lock, orders being placed referencing the same product must
wait in line to get a lock.  Under high load, that wait can be substantial.

I wish I had the resources to help with Postgre development.  For now, I can
only offer my observations.

pgsql-general by date:

Previous
From: strange@nsk.yi.org
Date:
Subject: Re: [HACKERS] Linux Largefile Support In Postgresql RPMS
Next
From: Jan Wieck
Date:
Subject: Re: Read Lock For Foreign Key