Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iL1Dy-0002m4-8P for pgsql-hackers@arkaria.postgresql.org; Thu, 17 Oct 2019 08:33:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iL1Dw-0006mz-Ty for pgsql-hackers@arkaria.postgresql.org; Thu, 17 Oct 2019 08:33:32 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iL1Dw-0006me-HY for pgsql-hackers@lists.postgresql.org; Thu, 17 Oct 2019 08:33:32 +0000 Received: from mail-ed1-x541.google.com ([2a00:1450:4864:20::541]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1iL1Dp-0005Es-JC for pgsql-hackers@lists.postgresql.org; Thu, 17 Oct 2019 08:33:31 +0000 Received: by mail-ed1-x541.google.com with SMTP id v8so1073036eds.2 for ; Thu, 17 Oct 2019 01:33:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=4ybwg9kYxUnoHLrnYlH3lRtgWRsnftPKZTGQEQqtNnc=; b=j5anDqe/TgI2eqmkpnZEX9R9EQb5vqZVZ7kr+XO/Nt5fOgYdT427y7o9ZTBSnkncGd X0tqr458BhDwY+APM4K3yuge/7rq4o54LSSqnbG4h8KeP44h9QliyqQuvuyHvDsh4bwM lbt37fA1qfYjX1IjqIuiQNSOehyWCq3I7fEbfbyDG0JUJRDKRTzN609ufk+4FbgPvXuA fDLGEAd5oDtS7f+5fZtclhDJ71m2ZGQYjTUV5EbMYUn3Ksj8zrGh+ljXFaQlKD7d8mEI KcGcySRCJ4TZNgYQhuymH/GUr03aMY1HBUxuQ7xnh4ZI/4tofsdQWNQFxlPYMWIuRV98 0pGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=4ybwg9kYxUnoHLrnYlH3lRtgWRsnftPKZTGQEQqtNnc=; b=amOxXiQoGa2erUKPt9R3ojGaH0cLF405KRRVL3exWIkSJLRUk4q2n8uoxezbeWaxw8 ix/q/NIM9GTzJWWBkQD8HJ8D1j9CHpfDTZ+Bglv6l48vzt64gVbufsuEg4EN1ysc0GdG dq8XWTCbo7OGoJXbRlEhVDsxomCoi5FZPw/Jtkg7GRglbCz/02z70tGlXtbsEThJyIt8 0wAhlnd8ZDE9oTdNwQN4IAxad0EmL6UKK7iCeVzy5dhWYOn2mXDGZlN3xp0KicphYdkC pmRZqIUumeH3bCJieIKytRpkqqTMWNehoO2VvPOM92Hm6gx2Sq0g2Z/XGBAcmswbj6f5 Q/2g== X-Gm-Message-State: APjAAAXXTqxrBFjg888c5MW0Xz+6hjHHUwd2XlTX4EGn5uXqWeqfJobH bHN+t3EOnV5fcDNATXuwUVfoXA== X-Google-Smtp-Source: APXvYqxT+n7WYRXmVYaeFfbvngPXSgWjMihqUqodeER70wDE63Y9RVqaSMtjdpdAz+s6IUauZkCH3Q== X-Received: by 2002:a17:906:519:: with SMTP id j25mr2276142eja.65.1571301204144; Thu, 17 Oct 2019 01:33:24 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([82.102.24.174]) by smtp.gmail.com with ESMTPSA id ba28sm75448edb.4.2019.10.17.01.33.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Oct 2019 01:33:23 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 2312F300A24; Thu, 17 Oct 2019 05:33:22 -0300 (-03) Date: Thu, 17 Oct 2019 05:33:22 -0300 From: Alvaro Herrera To: Michael Paquier Cc: Justin Pryzby , pgsql-hackers@lists.postgresql.org, Peter Eisentraut , Andreas Karlsson Subject: Re: v12.0: segfault in reindex CONCURRENTLY Message-ID: <20191017083322.GA19372@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191017010412.GH2602@paquier.xyz> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Oct-17, Michael Paquier wrote: > You may not have a backtrace, but I think that you are right: > WaitForLockers() gets called in index_drop() with progress reporting > enabled. index_drop() would also be taken by REINDEX CONCURRENTLY > through performMultipleDeletions() but we cannot know if it gets used > for REINDEX CONCURRENTLY or for DROP INDEX CONCURRENTLY as it goes > through the central deletion machinery, so we have to mark progress > reporting as true anyway. Maybe that's worth a comment in index_drop > when calling WaitForLockers() because it is not actually that obvious, > say like that: Hmm, I wonder if it isn't the right solution to set 'progress' to false in that spot, instead. index_drop says it must only be called by the dependency machinery; are we depending on that to pass-through the need to update progress status? I'm going over that code now. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services