From: Heikki Linnakangas <hlinnakangas@vmware.com>
To: roberto.menoncin@netspa.it
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #8000: ExclusiveLock on a simple SELECT ?
Date: Wed, 27 Mar 2013 17:39:15 +0200
Message-ID: <515312A3.2050807@vmware.com> (raw)
In-Reply-To: <E1UKq4y-0002jB-H0@wrigleys.postgresql.org>
References: <E1UKq4y-0002jB-H0@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
On 27.03.2013 15:07, roberto.menoncin@netspa.it wrote:
> after upgrading to version 9.2.3 we having a performance degradation.
> We are investigating the matter on several fronts.
> We've seen that Postgres (9.2.3) creates ExclusiveLock even with simple
> SELECT * From myschema.mytable.
You mean like this:
postgres=# create table mytable(i int4);
CREATE TABLE
postgres=# begin;
BEGIN
postgres=# select * from mytable;
i
---
(0 rows)
postgres=# select * from pg_locks;
locktype | database | relation | page | tuple | virtualxid |
transactionid |
classid | objid | objsubid | virtualtransaction | pid | mode
| gran
ted | fastpath
------------+----------+----------+------+-------+------------+---------------+-
--------+-------+----------+--------------------+-------+-----------------+-----
----+----------
relation | 12010 | 11069 | | | |
|
| | | 1/3 | 19811 |
AccessShareLock | t
| t
relation | 12010 | 16482 | | | |
|
| | | 1/3 | 19811 |
AccessShareLock | t
| t
virtualxid | | | | | 1/3 |
|
| | | 1/3 | 19811 | ExclusiveLock
| t
| t
(3 rows)
That last ExclusiveLock is on the transactions virtual transactaction
ID. Not on the table. There is no change from previous versions here.
- Heikki
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: hlinnakangas@vmware.com, roberto.menoncin@netspa.it
Subject: Re: BUG #8000: ExclusiveLock on a simple SELECT ?
In-Reply-To: <515312A3.2050807@vmware.com>
References: <E1UKq4y-0002jB-H0@wrigleys.postgresql.org> <515312A3.2050807@vmware.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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