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 1iF1Dc-0004gu-Us for pgsql-committers@arkaria.postgresql.org; Mon, 30 Sep 2019 19:20:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iF1Db-0000nv-QD for pgsql-committers@arkaria.postgresql.org; Mon, 30 Sep 2019 19:20:23 +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 1iF1Da-0000nR-NF for pgsql-committers@lists.postgresql.org; Mon, 30 Sep 2019 19:20:23 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iF1DW-0001rR-Mq for pgsql-committers@lists.postgresql.org; Mon, 30 Sep 2019 19:20:22 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 6334B749; Mon, 30 Sep 2019 15:20:15 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 30 Sep 2019 15:20:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:content-transfer-encoding:in-reply-to; s=fm2; bh=M 220Cec5hrHEnE59ztTLdzPSZXr7uSB/ZHc6Fc6kQN8=; b=j/h0LuU4AlGzyO6UL 11v0pm+Qc0ZwT9nwZaoaIT02BuySuY+B5lrTfNyIOUX+1pTtzzGBNOaBFEF/VlC9 t3h+ZH31AU2RLIjL0Lg3Lxeb4kIHPn2MoxgPcgPEnwO1y/vx4fzmUCcWIhB2Vspw IYUEFrBA3MLok6nG2NUReErByrWTL4wJ2mG28IXBIfkfxYAHu+a0QmYRb0iXAVJl +0V6dIIMgnFfdi+kvl0XseS2MZKcJqJbFdJx5sBPX2v4KJx+m/MAd8+aLxqnttgC w+CHhGZHoqko1CDql5QRlPDkXqPFni1kXBB5vbpzW25BfREqIc2bmVlPUfckEpKR 4ETGA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=M220Cec5hrHEnE59ztTLdzPSZXr7uSB/ZHc6Fc6kQ N8=; b=LTY7BsKpQoMZGdAsarxzdxDUVvusW/zJnuL/W2Ug+uZy+3ZGHMaS2+QO0 ONL8FJwYUHtI91fu4jl2s0nsJJLqGJpJlg8PAtwR2A+3B+sQzkc34hRzzZByTscp tMni/SwqRZ7oH88U4OxKQr2tObTKYIm0CidJ6EPPqbgD5/AOQjkuUmBs5gelWaQY yaL2cAFIVLBVPn5Aeei5H415bGxCCxH+JZnr8wu5VWBnOA+PCpn2K2gw67qlhufY YySg4xLvs7NzFKlgTUNqVqBd07J2ogn1AOuUCDf0mzKF+9QBDZWEAeud4IfL6PCl IO1Kj051Cl1h7JFQpjdnj6MzXjYiw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrgedvgddufedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtugfgjgesthekredttddtudenucfhrhhomheptehnughr vghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuffhomh grihhnpehpohhsthhgrhdrvghspdhpghhsqhhlrdgsuhhilhgupdhpohhsthhgrhgvshhq lhdrohhrghenucfkphepieejrdduiedtrddvudekrddvfeejnecurfgrrhgrmhepmhgrih hlfhhrohhmpegrnhgurhgvshesrghnrghrrgiivghlrdguvgenucevlhhushhtvghrufhi iigvpedt X-ME-Proxy: Received: from intern.anarazel.de (c-67-160-218-237.hsd1.ca.comcast.net [67.160.218.237]) by mail.messagingengine.com (Postfix) with ESMTPA id 68EAB8005C; Mon, 30 Sep 2019 15:20:14 -0400 (EDT) Date: Mon, 30 Sep 2019 12:20:13 -0700 From: Andres Freund To: Alvaro Herrera Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: pg_rewind: Allow writing recovery configuration Message-ID: <20190930192013.r3wievljua2n3tbb@alap3.anarazel.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2019-09-30 17:11:09 +0000, Alvaro Herrera wrote: > pg_rewind: Allow writing recovery configuration > > This is provided with a new switch --write-recovery-conf and reuses the > pg_basebackup code. > > Author: Paul Guo, Jimmy Yih, Ashwin Agrawal > Reviewed-by: Alexey Kondratov, Michaėl Paquier, Įlvaro Herrera > Discussion: https://postgr.es/m/CAEET0ZEffUkXc48pg2iqARQgGRYDiiVxDu+yYek_bTwJF+q=Uw@mail.gmail.com This currently fails on windows under mingw: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=jacana&dt=2019-09-30%2018%3A00%3A36 Sep 30 14:11:02 ccache x86_64-w64-mingw32-gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -g -O2 pg_rewind.o parsexlog.o xlogreader.o datapagemap.o timeline.o fetch.o file_ops.o copy_fetch.o libpq_fetch.o filemap.o win32ver.o -L../../../src/port -L../../../src/common -L../../../src/common -lpgcommon -L../../../src/port -lpgport -L../../../src/interfaces/libpq -lpq -L../../../src/fe_utils -lpgfeutils -Wl,--allow-multiple-definition -Wl,--disable-auto-import -L/c/prog/3p64/lib -L/c/prog/3p64/lib -L/c/prog/3p64/openssl-win64/lib/VC -Wl,--as-needed -lpgcommon -lpgport -lintl -lxslt -lxml2 -lz -lws2_32 -lm -lws2_32 -o pg_rewind.exe Sep 30 14:11:02 ../../../src/fe_utils/libpgfeutils.a(recovery_gen.o): In function `GenerateRecoveryConfig': Sep 30 14:11:02 c:/mingw/msys/1.0/home/pgrunner/bf/root/HEAD/pgsql.build/../pgsql/src/fe_utils/recovery_gen.c:33: undefined reference to `createPQExpBuffer' Sep 30 14:11:02 c:/mingw/msys/1.0/home/pgrunner/bf/root/HEAD/pgsql.build/../pgsql/src/fe_utils/recovery_gen.c:44: undefined reference to `PQserverVersion' I assume the issue is that the specified link order is: LDFLAGS_INTERNAL += $(libpq_pgport) -L$(top_builddir)/src/fe_utils -lpgfeutils but pgfeutils introduces a dependency on symbols from libpq that weren't needed at the time libpq was linked. Therefore they aren't included inthe resulting library. I'll reorder them. Greetings, Andres Freund