Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UKsRg-0007F4-R5 for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Mar 2013 15:39:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UKsRg-0003ua-B6 for pgsql-bugs@arkaria.postgresql.org; Wed, 27 Mar 2013 15:39:24 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UKsRf-0003uS-N2 for pgsql-bugs@postgresql.org; Wed, 27 Mar 2013 15:39:23 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UKsRd-0005wp-4a for pgsql-bugs@postgresql.org; Wed, 27 Mar 2013 15:39:23 +0000 Received: from sc9-mailhost1.vmware.com (sc9-mailhost1.vmware.com [10.113.161.71]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 2E27A285CC; Wed, 27 Mar 2013 08:39:19 -0700 (PDT) Received: from zcs-prod-ext-mta-2.vmware.com (zcs-prod-ext-mta-2.vmware.com [10.113.62.224]) by sc9-mailhost1.vmware.com (Postfix) with ESMTP id 2A3751889A; Wed, 27 Mar 2013 08:39:19 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTP id DCFD5C155D; Wed, 27 Mar 2013 08:39:16 -0700 (PDT) X-Virus-Scanned: amavisd-new at zcs-prod-ext-mta-2.vmware.com Received: from zcs-prod-ext-mta-2.vmware.com ([127.0.0.1]) by localhost (zcs-prod-ext-mta-2.vmware.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id x55PNqJimNIp; Wed, 27 Mar 2013 08:39:16 -0700 (PDT) Received: from zcs-prod-ext-mta-2.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTP id B9620C153D; Wed, 27 Mar 2013 08:39:16 -0700 (PDT) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-2.vmware.com (Postfix) with ESMTPSA; Wed, 27 Mar 2013 08:39:15 -0700 (PDT) Message-ID: <515312A3.2050807@vmware.com> Date: Wed, 27 Mar 2013 17:39:15 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: roberto.menoncin@netspa.it CC: pgsql-bugs@postgresql.org Subject: Re: BUG #8000: ExclusiveLock on a simple SELECT ? References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -8.2 (--------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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