Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fujP7-0008KW-8f for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Aug 2018 19:11:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fujP5-0006Q8-D0 for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Aug 2018 19:11:51 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fujP4-0006Q1-VY for pgsql-hackers@lists.postgresql.org; Tue, 28 Aug 2018 19:11:51 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fujP2-00061T-F9 for pgsql-hackers@lists.postgresql.org; Tue, 28 Aug 2018 19:11:49 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w7SJBkjw011451; Tue, 28 Aug 2018 15:11:46 -0400 From: Tom Lane To: Stephen Frost cc: pgsql-hackers@lists.postgresql.org Subject: Re: More parallel pg_dump bogosities In-reply-to: <21154.1535392691@sss.pgh.pa.us> References: <19784.1535390902@sss.pgh.pa.us> <20180827173932.GY3326@tamriel.snowman.net> <21154.1535392691@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Mon, 27 Aug 2018 13:58:11 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <11449.1535483506.1@sss.pgh.pa.us> Date: Tue, 28 Aug 2018 15:11:46 -0400 Message-ID: <11450.1535483506@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ... just when you thought it was safe to go back in the water ... Doesn't pg_backup_archiver.c's identify_locking_dependencies() need to treat POLICY and ROW SECURITY items as requiring exclusive lock on the referenced table? Those commands definitely acquire AccessExclusiveLock in a quick test. I haven't looked hard, but I'm suspicious that other recently-added dump object types may have been missed here too, and even more suspicious that we'll forget this again in future. I wonder if we shouldn't invert the logic, so that instead of a blacklist of object types that we assume need exclusive lock, we keep a whitelist of object types that are known not to (which might be just INDEX, not sure). That way, we'd at least be failing in a safe direction. regards, tom lane