Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9uk1-0008NN-0M for pgsql-hackers@arkaria.postgresql.org; Sat, 31 Jul 2021 19:33:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m9ujy-000295-1l for pgsql-hackers@arkaria.postgresql.org; Sat, 31 Jul 2021 19:33:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9ujx-00028w-Q1 for pgsql-hackers@lists.postgresql.org; Sat, 31 Jul 2021 19:33:45 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9uju-0002sJ-UV for pgsql-hackers@postgresql.org; Sat, 31 Jul 2021 19:33:44 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 72CDA3200564; Sat, 31 Jul 2021 15:33:41 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sat, 31 Jul 2021 15:33:41 -0400 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:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=0ABmIIv8zXB2/5cdJKG1fDQbuNY56uEW70rUZ5JsJVI=; b=EMq8r+0V eHvdqJ60cw0WhqBz1kzJtnJ/mqtvainsh1wCjjdDEa49GKCkM9KdNcHuEJYR0CiV b0B5y1nlI60Oo+XCIg/dGk2/EaZC4XfuU/cMEMcLepEcQig2vNNvCMdN61Lw5Zvy XzyZSRFobCPa+3JiMBApe8eu6BKOLG22bYNxykDlDwZ6WacjgGjd+FGJ7OVE8OWW KsIz44G7exE3lBbKZv6xt1hv4XkE22Bh3HTLll8KJuA3jpJD9Y6eDB8az+MvN/7r K5Ns8DSBtLOexwAqjdhe6riu60iQ22M6l9kctqlDPi9w4YeOQOKeHTW2NvPN9QMf RITCpLiB8sKJEA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrheejgdduudekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpedujeevjeffjeevuddutedvkeeiueeitddvieelfeekveej udefgeeuvdejhfeuleenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 31 Jul 2021 15:33:40 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 91A052A09BA; Sat, 31 Jul 2021 15:33:36 -0400 (-04) Date: Sat, 31 Jul 2021 15:33:36 -0400 From: Alvaro Herrera To: Heikki Linnakangas Cc: Andres Freund , vignesh C , pgsql-hackers Subject: Re: Split xlog.c Message-ID: <202107311933.c4l47bfbqsx5@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk After applying 0001 and 0002 I got a bunch of compile problems: In file included from /pgsql/source/master/src/include/postgres.h:46, from /pgsql/source/master/src/backend/access/transam/xlog.c:39: /pgsql/source/master/src/backend/access/transam/xlog.c: In function 'StartupXLOG': /pgsql/source/master/src/backend/access/transam/xlog.c:5310:10: error: 'lastPageBeginPtr' undeclared (first use in this function) Assert(lastPageBeginPtr == EndOfLog); ^~~~~~~~~~~~~~~~ /pgsql/source/master/src/include/c.h:848:9: note: in definition of macro 'Assert' if (!(condition)) \ ^~~~~~~~~ /pgsql/source/master/src/backend/access/transam/xlog.c:5310:10: note: each undeclared identifier is reported only once for each function it appears in Assert(lastPageBeginPtr == EndOfLog); ^~~~~~~~~~~~~~~~ /pgsql/source/master/src/include/c.h:848:9: note: in definition of macro 'Assert' if (!(condition)) \ ^~~~~~~~~ make[4]: *** [../../../../src/Makefile.global:938: xlog.o] Error 1 /pgsql/source/master/src/backend/access/transam/xlog.c:5310:10: error: use of undeclared identifier 'lastPageBeginPtr' Assert(lastPageBeginPtr == EndOfLog); ^ 1 error generated. make[4]: *** [../../../../src/Makefile.global:1070: xlog.bc] Error 1 make[4]: Target 'all' not remade because of errors. make[3]: *** [/pgsql/source/master/src/backend/common.mk:39: transam-recursive] Error 2 make[3]: Target 'all' not remade because of errors. make[2]: *** [/pgsql/source/master/src/backend/common.mk:39: access-recursive] Error 2 make[2]: Target 'install' not remade because of errors. make[1]: *** [Makefile:42: install-backend-recurse] Error 2 make[1]: Target 'install' not remade because of errors. make: *** [GNUmakefile:11: install-src-recurse] Error 2 make: Target 'install' not remade because of errors. /pgsql/source/master/contrib/pg_prewarm/autoprewarm.c: In function 'apw_load_buffers': /pgsql/source/master/contrib/pg_prewarm/autoprewarm.c:301:9: warning: implicit declaration of function 'AllocateFile'; did you mean 'load_file'? [-Wimplicit-function-declaration] file = AllocateFile(AUTOPREWARM_FILE, "r"); ^~~~~~~~~~~~ load_file /pgsql/source/master/contrib/pg_prewarm/autoprewarm.c:301:7: warning: assignment to 'FILE *' {aka 'struct _IO_FILE *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] file = AllocateFile(AUTOPREWARM_FILE, "r"); ^ /pgsql/source/master/contrib/pg_prewarm/autoprewarm.c:342:2: warning: implicit declaration of function 'FreeFile' [-Wimplicit-function-declaration] FreeFile(file); ^~~~~~~~ /pgsql/source/master/contrib/pg_prewarm/autoprewarm.c: In function 'apw_dump_now': /pgsql/source/master/contrib/pg_prewarm/autoprewarm.c:630:7: warning: assignment to 'FILE *' {aka 'struct _IO_FILE *'} from 'int' makes pointer from integer without a cast [-Wint-conversion] file = AllocateFile(transient_dump_file_path, "w"); ^ /pgsql/source/master/contrib/pg_prewarm/autoprewarm.c:694:9: warning: implicit declaration of function 'durable_rename'; did you mean 'errtablecolname'? [-Wimplicit-function-declaration] (void) durable_rename(transient_dump_file_path, AUTOPREWARM_FILE, ERROR); ^~~~~~~~~~~~~~ errtablecolname -- Álvaro Herrera Valdivia, Chile — https://www.EnterpriseDB.com/