Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tNABV-008z48-9l for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Dec 2024 12:26:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tNABS-006J3q-R2 for pgsql-hackers@arkaria.postgresql.org; Mon, 16 Dec 2024 12:26:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tNABR-006J3d-Qn for pgsql-hackers@lists.postgresql.org; Mon, 16 Dec 2024 12:26:47 +0000 Received: from fout-b3-smtp.messagingengine.com ([202.12.124.146]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tNABP-0038mp-Mz for pgsql-hackers@lists.postgresql.org; Mon, 16 Dec 2024 12:26:46 +0000 Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfout.stl.internal (Postfix) with ESMTP id C225D11400B5; Mon, 16 Dec 2024 07:26:40 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Mon, 16 Dec 2024 07:26:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilmari.org; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1734352000; x=1734438400; bh=kFTMFHCq+k NgBqLVT5b11k2Uawpsy81OQE9mtYbHasU=; b=WsMhTX3ZFdnnlIH2gc8mCuQaYl JZJ0J2cP4lj8wPo7stiviT3CZ5j0J6LUdccrMBRGRM7CAc9GmztjrcCg68sdc474 5mPpp2tObXOt5pqg5PLsETnku+i4loCEazRB55FIImUuhhgJTjiQoV2cQHnO5aX0 9nYtRSnGC08zKLV1rI4D1619RZuybMJEN6BCut8Dtq0EpLt+Wlwxrqe9ILec3Zhs +qDmKbn+P4/VKJKOAIqJ5XkpwKoBdZ222kyYpw9gtQShDHtHnCC+AaJOm7+0ZLPq 7BfNQiAikiU6CyrKDZwmDVtkMp2orwly6vG+FuGGePiDRCXkOzjb1zTSAxdA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1734352000; x=1734438400; bh=kFTMFHCq+kNgBqLVT5b11k2Uawpsy81OQE9 mtYbHasU=; b=pN6FpiwZ5GEGMIApAf7UaOrvVVoO6oyAPESwl4eLkCdHrCorJuM eJY/rENaZerPylQH5frrPjqBCw1UiCRzpB7ccUymUWiWZBUa+NTwf6hRhZKRZhCi HD/bB/Yp496/fRPGSg61P9cw7Gg95lyASYX3qszKOcZLmLtmRluA9bIN7PjQw5JS axiKnxY4f1zLclJn1xq6Y3pW5pUOf9McQIAbrmjk9VqgBKzwudPVxLpDXpx3I5Bh 3qHx8/L05sNe4j62Y0ljCmfYozBIaXhvjkPz579QIzzbhvlYcWgyh/Rondgw7Ptn 3HVjux5DPPTkDI4gl/JwoEdDfm2jK4jHZtw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrleefgdegtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnth hsucdlqddutddtmdenucfjughrpefhvfevufhfffgjkfgfgggtsehttdertddtreejnecu hfhrohhmpeffrghgfhhinhhnucfklhhmrghrihcuofgrnhhnshonkhgvrhcuoehilhhmrg hrihesihhlmhgrrhhirdhorhhgqeenucggtffrrghtthgvrhhnpeekleejueefhfffkefh kedtfeeluedvieeihfehfeeffeeggeduffduheejjeeigfenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehilhhmrghrihesihhlmhgrrhhirdho rhhgpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhope hpghhsqhhlqdhhrggtkhgvrhhssehlihhsthhsrdhpohhsthhgrhgvshhqlhdrohhrghdp rhgtphhtthhopehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i1ff147bf:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 16 Dec 2024 07:26:39 -0500 (EST) From: =?utf-8?Q?Dagfinn_Ilmari_Manns=C3=A5ker?= To: Michael Paquier Cc: pgsql-hackers@lists.postgresql.org Subject: Re: pg_combinebackup PITR comparison test fix References: <87h67653ns.fsf@wibble.ilmari.org> Date: Mon, 16 Dec 2024 12:26:38 +0000 In-Reply-To: (Michael Paquier's message of "Mon, 16 Dec 2024 14:14:55 +0900") Message-ID: <87ed276cg1.fsf@wibble.ilmari.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Michael Paquier writes: > On Sun, Dec 15, 2024 at 10:34:07AM +0900, Michael Paquier wrote: >> Indeed, good catch. I'll take care of it. Thanks! > + sub { > + s{create tablespace .* location '.*/tspitr\K[12]}{N}i for @_; > + return $_[0] ne $_[1]; > + }); > > The CI is complaining on this one because the custom comparison > function is not able to digest WIN32 paths, leading to failures in the > dump comparison like that: > -CREATE TABLESPACE ts1 OWNER "SYSTEM" LOCATION > E'C:\\Windows\\TEMP\\tJ4qTmrkZv\\tspitr1'; > +CREATE TABLESPACE ts1 OWNER "SYSTEM" LOCATION > E'C:\\Windows\\TEMP\\tJ4qTmrkZv\\tspitr2'; > > So there is an issue with the slash character after the location and > the single space before the quote. We could use something like this > one which would handle the paths sanely: > s{create tablespace .* location .*'.*tspitr\K[12]}{N}i for @_; > > Perhaps you are able to come with a more elegant string? I'm torn between making it more specific, only allowing escaped strings or not, and either type of slash for the path separator: s{create tablespace .* location .* E?'.*[\\/]tspitr\K[12]}{N}i for @_; vs. making it less specific, not caring about the specifics of quoting or path separators at all: s{create tablespace .* location .*\btspitr\K[12]}{N}i for @_; I think I'm leaning towards the latter, for simplicity and robustness. - ilmari