pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #8000: ExclusiveLock on a simple SELECT ?
2+ messages / 2 participants
[nested] [flat]
* BUG #8000: ExclusiveLock on a simple SELECT ?
@ 2013-03-27 13:07 roberto.menoncin@netspa.it
2013-03-27 15:39 ` Re: BUG #8000: ExclusiveLock on a simple SELECT ? Heikki Linnakangas <hlinnakangas@vmware.com>
0 siblings, 1 reply; 2+ messages in thread
From: roberto.menoncin@netspa.it @ 2013-03-27 13:07 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 8000
Logged by: Roberto
Email address: roberto.menoncin@netspa.it
PostgreSQL version: 9.2.3
Operating system: CentOS 5.6 (Final)
Description:
Hy,
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.
Is it normal ?
Thank you
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #8000: ExclusiveLock on a simple SELECT ?
2013-03-27 13:07 BUG #8000: ExclusiveLock on a simple SELECT ? roberto.menoncin@netspa.it
@ 2013-03-27 15:39 ` Heikki Linnakangas <hlinnakangas@vmware.com>
0 siblings, 0 replies; 2+ messages in thread
From: Heikki Linnakangas @ 2013-03-27 15:39 UTC (permalink / raw)
To: roberto.menoncin@netspa.it; +Cc: pgsql-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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2013-03-27 15:39 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-03-27 13:07 BUG #8000: ExclusiveLock on a simple SELECT ? roberto.menoncin@netspa.it
2013-03-27 15:39 ` Heikki Linnakangas <hlinnakangas@vmware.com>
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