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 1ipuZm-0007w6-Vj for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Jan 2020 13:43:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ipuZl-0002HF-RE for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Jan 2020 13:43:45 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1ipuZl-0002Fr-Cg for pgsql-hackers@lists.postgresql.org; Fri, 10 Jan 2020 13:43:45 +0000 Received: from mail-qv1-xf42.google.com ([2607:f8b0:4864:20::f42]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ipuZi-00061Q-60 for pgsql-hackers@postgresql.org; Fri, 10 Jan 2020 13:43:44 +0000 Received: by mail-qv1-xf42.google.com with SMTP id o18so740786qvf.1 for ; Fri, 10 Jan 2020 05:43:41 -0800 (PST) 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=G4jzqulFUcliQ0znDJjEeEFOd46cWwTJiaorXsr8If4=; b=uO81E4ipkvn+ust16uckv6xN8swYPI1vCnMcnhzBzRokOK1VmKKb3YjDPKiDNm3RN3 4Hg/b6o6eHOgRLL74P3G/VEVcXQR+QIhJLTahrN0E/8/AL63gPJXYuiu0iyIQMP42T6Z Mk1Bvs1galyFM0fCNJdh+RBGzmloH1Z35yjv7gIoCIoVphDVFALNpzYsKT7mMFEFmOle PE/UlfQR7WLW0NhfR//Oex+HbTvz2T7FIqEb0L1xBn3w1Yf0prDX8zreKbsRF5xeXd4b pGII98skwr5OmHDkaMyvlDFZl/9J/tWYH1Ckbm9Eo9pskKvfh+U5KR/fCD68TvbvVgFu MwQQ== 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=G4jzqulFUcliQ0znDJjEeEFOd46cWwTJiaorXsr8If4=; b=LpdRSPSzseviJh6hSa+snNs8Xlq+4w6hv6qvp6jK8SLIPVRPypZs1R6TeKJWAqU3H0 fe30TVcoTP0e+y19HuIUjNdUzUECm8X/SMUdCRQ4xgTqTUWsLCgBJldWYQCSzwVGrDzA mYm0vMla4CfrgXKpUPUmylD+Z/3qUCiYlT24+8IPL10HEe2KlY5sU9dZjQOx7/JRikni 4qbbvHnvWMEhEomfkgjRw0nHQdcxMATk2SlC+K6FUWZQVYYoJV5K5GNzUd+ZNuW8COSG yFxbSN9FCtjiQApMiviPWmFOIPU/KqVrKO8J45+DWQ6cIclruc4a5PzY1YasNfaTBwH1 js/A== X-Gm-Message-State: APjAAAWijstRn9YJIknnz0mZJ7L0A+p5nEGSiXjd0UJ+r9F8/vQ7EQse zZ0Vf9K4Fc+FnfxFJCoXMogXFA== X-Google-Smtp-Source: APXvYqyLgB4l0KkleaLvuOqlFzLmlEZCcpy7ODt56EW+47imzbYdYjhkJxA8S4A5J2PducqZZitlLA== X-Received: by 2002:ad4:55e8:: with SMTP id bu8mr2835086qvb.61.1578663818944; Fri, 10 Jan 2020 05:43:38 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id u4sm854899qkh.59.2020.01.10.05.43.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jan 2020 05:43:38 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id D9982300831; Fri, 10 Jan 2020 10:43:35 -0300 (-03) Date: Fri, 10 Jan 2020 10:43:35 -0300 From: Alvaro Herrera To: Anastasia Lubennikova Cc: Asim R P , Paul Guo , Alexandra Wang , Thomas Munro , Kyotaro HORIGUCHI , PostgreSQL mailing lists Subject: Re: standby recovery fails (tablespace related) (tentative patch and discussion) Message-ID: <20200110134335.GA6829@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200110002245.GA23694@alvherre.pgsql> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Jan-09, Alvaro Herrera wrote: > I looked at this a little while and was bothered by the perl changes; it > seems out of place to have RecursiveCopy be thinking about tablespaces, > which is way out of its league. So I rewrote that to use a callback: > the PostgresNode code passes a callback that's in charge to handle the > case of a symlink. Things look much more in place with that. I didn't > verify that all places that should use this are filled. > > In 0002 I found adding a new function unnecessary: we can keep backwards > compat by checking 'ref' of the third argument. With that we don't have > to add a new function. (POD changes pending.) I forgot to add that something in these changes is broken (probably the symlink handling callback) so the tests fail, but I couldn't stay away from my daughter's birthday long enough to figure out what or how. I'm on something else today, so if one of you can research and submit fixed versions, that'd be great. Thanks, -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services