Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOvc1-0002IJ-6t for pgsql-bugs@arkaria.postgresql.org; Mon, 10 Aug 2015 22:32:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZOvbz-0002eZ-Pg for pgsql-bugs@arkaria.postgresql.org; Mon, 10 Aug 2015 22:32:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZOvbz-0002eS-C2 for pgsql-bugs@postgresql.org; Mon, 10 Aug 2015 22:32:07 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZOvbv-0002XV-UP for pgsql-bugs@postgresql.org; Mon, 10 Aug 2015 22:32:06 +0000 MIME-Version: 1.0 Subject: BUG #13559: WAL replay stuck after DROP VIEW To: pgsql-bugs@postgresql.org From: maciek@heroku.com Date: Mon, 10 Aug 2015 22:31:14 +0000 Message-ID: <20150810223114.2696.65707@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.2 (-) Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-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 The following bug has been logged on the website: Bug reference: 13559 Logged by: Maciek Sakrejda Email address: maciek@heroku.com PostgreSQL version: 9.4.1 Operating system: Ubuntu 12.04 Description: We had some code in production that automatically dropped and recreated views periodically. This database also has a replica that serves some moderately intensive queries (read: on the order of several minutes). This generally this works fine, but we ran into an issue the other day where the startup process on the replica was holding a bunch of AccessExclusive locks on these views (presumably due to the DROP) and would not progress even though there were no conflicting queries (there may very well have been queries against these views at one point, but not not when I looked--all the locks held by the startup process showed up as granted in pg_locks). This resolved when we restarted the replica. We're on 9.4.1, but skimming through the 9.4.2-through-9.4.4 release notes, I don't see anything relevant. Could this be an outstanding bug? For what it's worth, we've been running the view drop / recreate for about 9 months, totalling probably ~240 drops / creates and this is the first time we've run into an issue. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs