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 1fhkbj-00068I-BO for pgsql-general@arkaria.postgresql.org; Mon, 23 Jul 2018 23:51:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fhkbe-0004BH-Qa for pgsql-general@arkaria.postgresql.org; Mon, 23 Jul 2018 23:51:10 +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 1fhkbc-0004BA-OP for pgsql-general@lists.postgresql.org; Mon, 23 Jul 2018 23:51:10 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fhkbX-0002tC-BN for pgsql-general@lists.postgresql.org; Mon, 23 Jul 2018 23:51:07 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 378F521EFE; Mon, 23 Jul 2018 19:51:02 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 23 Jul 2018 19:51:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=V3bNlslohFfpDdaJdeUP5BCBCAhFpIMESFn0qUUHjzw=; b=ynvGk5rt 2CZqGLXg4F9f7+DgP3BfCarogqQq+EgHjd4faLH7D8h+Sqp3wKQq+xaKjCPPjvjW 5TRZ8W79CXYLgeV6rWQKqM96Z3xcy4YsEPOLOW+6R7e3ne3Wj7eW0qUkgIVGIPSa IlTdrcBy+XCmDUQRD60Vxan6sPmBXlt7TRRAOwpwViDTU7ZBpYSHpZb4IpPOnpKj mSJ8TaGYhjf3cAYC9A/0W6HKUizQTnH86LEpsGLuRXEEWQTKx2xikRGidasSNNvb gPoNMA8GbJ3EMhR0TUDGdHv//oX4rpFCSgZzNCtGpItJNlcd4GX2a5Vd5Qh6nDDF 8eXWMSyE9Wx7iA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=V3bNlslohFfpDdaJdeUP5BCBCAhFp IMESFn0qUUHjzw=; b=OgLGCV3ei6MGsK2ZjJdOBfR+/YJleGrr1rzTG1ypSqVfj MMxAFAQqVke+Gfo4vGseT/tdqC3cDDI79M6Bf+7FYpfADWkh8FyoviFAwMESWbdH 7rS+j46CDD4KgBSXSe3ZBZ1oFT73C5soWurybRhGGcMBuNv6TKYgDVH4QhXP1UMy 24V3IXnT7MXVcQX8ZFukvntZL3JW0IUrMSAee6tas/u1ehyybsEv7qyhdGugormV eF7X8iRBX9/VzBPdWBKIOSdOu3TnqlzYIhxXz3NQbBTIgVg1wYxLFueXhSELAyck arWfSwt6JZlFxVoaw51OfrQJtahYHU5fdunpHxFNQ== X-ME-Proxy: X-ME-Sender: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id 7B42D10261; Mon, 23 Jul 2018 19:51:01 -0400 (EDT) Date: Mon, 23 Jul 2018 16:51:00 -0700 From: Andres Freund To: Dimitri Maziuk , Petr Jelinek , Alvaro Herrera , Peter Eisentraut Cc: pgsql-general Subject: Re: logical replication snapshots Message-ID: <20180723235100.qvztneum7ipdlyir@alap3.anarazel.de> References: <3bf34856-efb9-01e8-3147-1e0dff1f7131@bmrb.wisc.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3bf34856-efb9-01e8-3147-1e0dff1f7131@bmrb.wisc.edu> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2018-07-23 15:23:04 -0500, Dimitri Maziuk wrote: > I'm playing with logical replication in postgres-10 and I got it to hang > on startup with > > > 2018-07-23 13:15:06.577 CDT [18624] FATAL: the database system is starting up > > 2018-07-23 13:15:06.577 CDT [18624] DEBUG: shmem_exit(1): 0 before_shmem_exit callbacks to make > > 2018-07-23 13:15:06.577 CDT [18624] DEBUG: shmem_exit(1): 0 on_shmem_exit callbacks to make > > 2018-07-23 13:15:06.577 CDT [18624] DEBUG: proc_exit(1): 1 callbacks to make > > 2018-07-23 13:15:06.577 CDT [18624] DEBUG: exit(1) > > 2018-07-23 13:15:06.577 CDT [18624] DEBUG: shmem_exit(-1): 0 before_shmem_exit callbacks to make > > 2018-07-23 13:15:06.577 CDT [18624] DEBUG: shmem_exit(-1): 0 on_shmem_exit callbacks to make > > 2018-07-23 13:15:06.577 CDT [18624] DEBUG: proc_exit(-1): 0 callbacks to make > ... forever ... What precedes that "loop"? Could you describe what exactly you did into that situation? > After poking around: > > # find /var/lib/pgsql/10/data/pg_logical/snapshots -printf . | wc -c > 12727975 Ugh, something absolutely clearly isn't right here. > It looks like ZFS simply can't handle this many files: `ls` etc. hang > forever. ls probably works in general, it's just the sorting that makes it hang. Should work with -f or such. Greetings, Andres Freund