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 1h97uT-0001SY-GU for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Mar 2019 12:44:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h97uR-0006LO-7Y for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Mar 2019 12:43:59 +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 1h97uQ-0006LG-5P for pgsql-hackers@lists.postgresql.org; Wed, 27 Mar 2019 12:43:58 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h97uN-0008Dq-6z for pgsql-hackers@lists.postgresql.org; Wed, 27 Mar 2019 12:43:56 +0000 Received: from msg.df7cb.de (unknown [IPv6:2003:5b:203b:100:7627:eaff:fe52:8e03]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 44Tnk01wJyz3Dwv; Wed, 27 Mar 2019 13:43:52 +0100 (CET) Date: Wed, 27 Mar 2019 13:43:52 +0100 From: Christoph Berg To: Daniel Gustafsson Cc: Tom Lane , "pgsql-hackers@lists.postgresql.org" , Tomasz Szypowski Subject: Re: pg_upgrade version checking questions Message-ID: <20190327124351.GG12804@msg.df7cb.de> References: <9328.1552952117@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Re: Daniel Gustafsson 2019-03-26 > 0003 - Make -B default to CWD and remove the exec_path check > > Defaulting to CWD for the new bindir has the side effect that the default > sockdir is in the bin/ directory which may be less optimal. Hmm, I would have thought that the default for the new bindir is the directory where pg_upgrade is located, not the CWD, which is likely to be ~postgres or the like? On Debian, the incantation is /usr/lib/postgresql/12/bin/pg_upgrade \ -b /usr/lib/postgresql/11/bin \ -B /usr/lib/postgresql/12/bin <-- should be redundant Christoph