Multiple locks problem

From: "samantha mahindrakar" <sam(dot)mahindrakar(at)gmail(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Multiple locks problem
Date: 2008-07-17 20:30:44
Message-ID: f0c828c40807171330g140f08e1h73bc1add269d57b4@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi....
Below is the locks that are generated by my program. Can someone thrown some
light as to why i see multiple locks on the same table?.
I first insert data in the table 'imputed_prediction' and the select data
from it..........since i see locks on indexes.........................iam
assuming its happening during the selection of data.
I havent specifically defined locks either. However i select data from the
tabel across multiple functions.I see 4 locks on the same table
imputed_prediction......i insert data,select and truncate the table finally.
Under what conditions do we see such locks???The program runs too with this
condition.

"imputed_data_helper";85150013;2880;t;"AccessShareLock"
"imputed_data_helper_i1";85150013;2880;t;"AccessShareLock"
"imputed_data_helper_i2";85150013;2880;t;"AccessShareLock"
"imputed_data_helper_i3";85150013;2880;t;"AccessShareLock"
"imputed_data_helper_i4";85150013;2880;t;"AccessShareLock"
"imputed_data_helper_pk";85150013;2880;t;"AccessShareLock"
"imputed_lane_data_07_08";85150013;2880;t;"RowExclusiveLock"
"imputed_lane_data_07_08_measurement_start_i";85150013;2880;t;"RowExclusiveLock"
"imputed_lane_data_07_08_pk";85150013;2880;t;"RowExclusiveLock"
"imputed_lane_data_07_08_quality_i";85150013;2880;t;"RowExclusiveLock"
"imputed_prediction";85162809;1900;f;"ShareUpdateExclusiveLock"
"imputed_prediction";85150013;2880;t;"AccessShareLock"
"imputed_prediction";85150013;2880;t;"RowExclusiveLock"
"imputed_prediction";85150013;2880;t;"ShareLock"
"imputed_prediction";85150013;2880;t;"AccessExclusiveLock"
"imputed_prediction_i1";85150013;2880;t;"AccessExclusiveLock"
"imputed_prediction_i1";85150013;2880;t;"AccessShareLock"
"imputed_prediction_i2";85150013;2880;t;"AccessExclusiveLock"
"imputed_prediction_i2";85150013;2880;t;"AccessShareLock"
"imputed_prediction_i3";85150013;2880;t;"AccessShareLock"
"imputed_prediction_i3";85150013;2880;t;"AccessExclusiveLock"
"imputed_prediction_i4";85150013;2880;t;"AccessExclusiveLock"
"imputed_prediction_i4";85150013;2880;t;"AccessShareLock"
"imputed_prediction_i5";85150013;2880;t;"AccessExclusiveLock"
"imputed_prediction_i5";85150013;2880;t;"AccessShareLock"

Sam

Browse pgsql-admin by date

  From Date Subject
Next Message ria ulfa 2008-07-18 09:29:42 answer my question, please!!!
Previous Message Andrew Sullivan 2008-07-17 13:38:49 Re: Very Urgent : Db processes are increasing