Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WvGDO-0006XW-1w for pgsql-bugs@arkaria.postgresql.org; Fri, 13 Jun 2014 01:23:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WvGDM-0003qV-Pb for pgsql-bugs@arkaria.postgresql.org; Fri, 13 Jun 2014 01:23:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1WvGDK-0003qI-Rb for pgsql-bugs@postgresql.org; Fri, 13 Jun 2014 01:23:30 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1WvGDC-0003Bi-9i for pgsql-bugs@postgresql.org; Fri, 13 Jun 2014 01:23:29 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1WvGD7-0003rc-A9 for pgsql-bugs@postgresql.org; Thu, 12 Jun 2014 18:23:17 -0700 Date: Thu, 12 Jun 2014 18:23:17 -0700 (PDT) From: piuschan To: pgsql-bugs@postgresql.org Message-ID: <1402622597307-5807143.post@n5.nabble.com> Subject: automatic vacuum on pg_statistic pg_toast area blocks all queries in hot standby MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.8 (/) 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 Hi, We have a master/hot standy databases set up with streaming replication. The pair are running: PostgreSQL 9.1.11 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-3), 64-bit Linux 2.6.32-431.11.2.el6.x86_64 #1 SMP Tue Mar 25 19:59:55 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux We just find the following situation: on the master db server: (1) at 16:58:22 automatic vacuum of table ""pg_toast.pg_toast_2619"": index scans: 1 almost at the same time, queries at hot standby are blocked, all waiting for a share lock on pg_toast_2619, for example: process 26822 still waiting for AccessShareLock on relation 2840 of database 16414 after 1000.089 ms process 26820 still waiting for AccessShareLock on relation 2840 of database 16414 after 1000.085 ms process 26819 still waiting for AccessShareLock on relation 2840 of database 16414 after 1000.079 ms and etc... relation 2840 is actually pg_toast_2619 of pg_statistic: DB=# select relname from pg_class where reltoastrelid=2840; relname -------------- pg_statistic (1 row) Any idea why? Thanks a lot, Pius -- View this message in context: http://postgresql.1045698.n5.nabble.com/automatic-vacuum-on-pg-statistic-pg-toast-area-blocks-all-queries-in-hot-standby-tp5807143.html Sent from the PostgreSQL - bugs mailing list archive at Nabble.com. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs