Unix Technical Forum

row level locking

This is a discussion on row level locking within the pgsql Admins forums, part of the PostgreSQL category; --> Hi listers, I have a table that is accessed by only one transaction. It has 1500 rows each time ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 08:48 AM
Mark Steben
 
Posts: n/a
Default row level locking

Hi listers,

I have a table that is accessed by only one transaction. It has 1500 rows
each time that it processes

This transaction. As soon as this transaction ends, it waits 10 seconds and
starts again.

It has another maximum 1500 rows loaded. .



My question is this: I believe a RowExclusive level lock is acquired 1500
times during each transaction.

Is this true? Is there a way to disable RowExclusive locks and reduce
overhead since only this transaction

Accesses this table. I know there are ways to specify locking levels in
other DBMSs. To page or table levels.

We are currently at version 7.4.5.



Thank you for your time,





Mark Steben

Senior Database Administrator
@utoRevenueT
A Dominion Enterprises Company
480 Pleasant Street
Suite B200
Lee, MA 01238
413-243-4800 Home Office
413-243-4809 Corporate Fax

msteben <blocked::mailto:name@autorevenue.com> @autorevenue.com

Visit our new website at
<blocked::http://www.autorevenue.com/> www.autorevenue.com



IMPORTANT: The information contained in this e-mail message is confidential
and is intended only for the named addressee(s). If the reader of this
e-mail message is not the intended recipient (or the individual responsible
for the delivery of this e-mail message to the intended recipient), please
be advised that any re-use, dissemination, distribution or copying of this
e-mail message is prohibited. If you have received this e-mail message in
error, please reply to the sender that you have received this e-mail message
in error and then delete it. Thank you.




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 08:48 AM
Simon Riggs
 
Posts: n/a
Default Re: row level locking

On Fri, 2007-07-20 at 14:19 -0400, Mark Steben wrote:

> We are currently at version 7.4.5.


You should upgrade if you want better performance and scalability.

Or maybe you should just use COPY?

--
Simon Riggs
EnterpriseDB http://www.enterprisedb.com


---------------------------(end of broadcast)---------------------------
TIP 7: You can help support the PostgreSQL project by donating at

http://www.postgresql.org/about/donate

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:53 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com