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 1to63B-005zWU-F3 for pgsql-committers@arkaria.postgresql.org; Fri, 28 Feb 2025 19:29:34 +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 1to63B-00DsjC-L8 for pgsql-committers@arkaria.postgresql.org; Fri, 28 Feb 2025 19:29:32 +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 1to63B-00Dsj3-Bm for pgsql-committers@lists.postgresql.org; Fri, 28 Feb 2025 19:29:32 +0000 Received: from mail-lf1-x129.google.com ([2a00:1450:4864:20::129]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1to636-000EB2-1F for pgsql-committers@lists.postgresql.org; Fri, 28 Feb 2025 19:29:31 +0000 Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-54843052bcdso2216577e87.1 for ; Fri, 28 Feb 2025 11:29:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740770968; x=1741375768; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=+iNpkgPGJFiys+f81ugfyReHlRe806R7r4ofJoPVy9c=; b=BcPk6n8gwQLwRKoeOFlGImZc59vfaDFJ3mWwgN1wWj1TDjxCrRtwE6vqNFkiqUm1zU s92NyGcjCKZGoXQ5b14oKx/V+QSYT66bGL2x7aF/6+2c8Pov9lWSvBqosq5zQzzk3Ebb RYG7NqKyOiiVKPteMymwbXswdTacOtR4mW3FUFnnhJ4LWpEn/kHpdjXrkbUAL63fXA7m v/yy8cTGfPLiIeHlYqCe9GCcrC/0+mCwhi3ftVSNU+J8hLNQr5DJ0koU5a43JIFn2oG0 SOKqRJR9n77xwmOdMRhzku/o3EvB4ufiW1YiwLPR0uSBrk91VTqqj26XcFhtf0R2gGqI zeuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740770968; x=1741375768; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+iNpkgPGJFiys+f81ugfyReHlRe806R7r4ofJoPVy9c=; b=Wa2Snk09uHC9yWdJRRFI7bprm1XF07zzK1lHLjladqavlmDWAeOp6g1lDUrdCPe1zn xI9m9RFDPlm2Tr6Nx+uKKkDbWMrUIt5jln/PHRarNORSoByFfJPu6MmxyBFMR92uQsTq j2xXpDeX2QYaKplbWHcKebgz7IOOZkL0IMlq/yK5RM3VRoKjhtVVIDkEApTW54bCpcUR OLhbZ9xd7Qnh9IahsngELhhkq7KMjIUrdmMqsb3gKGxbkzF/q8SKYYedOIoxGB5lOzZW 7XxFHaAP9KaQeQecnsbVvolpI6oyY4hTJu2eEJ24/4plF8F4HTPed4kSVYxDl0rkSGf8 JyRg== X-Forwarded-Encrypted: i=1; AJvYcCWwuLlAsX474YWJDqAKwH20mCCCJpaHx+ZnOACxWn6hRopfU19u9bKKLIIaeFvtmJkGmg6qcH7rzxBQgPrOwWLx@lists.postgresql.org X-Gm-Message-State: AOJu0Yxo66Q9IJNuhAa1PyDoYTad2gSMrs69ov9lfYqIqin/ndFTVvpz +4LcIlxhfyjJGLO29yWZbWEFd+7/fZrZ0DuzbyTTqPAzlBoTiXgh3SWGMdTTINKcOUa5ip542Fw 1SMVChLSA3EsUfOEAw5xIR3YG3fU= X-Gm-Gg: ASbGncv9SMZ8q1JLDiSDU4tJrkbd3aedpBvH3TQlH1kW4bItKzuGXlF7ia3F9YZkyqi J1o1XOri9tXZg9ELAgkHfsLXKPsGH0XcXyLhK85W8PPO29E93Vha8DOs2HV97KQFZRaHVvFKDxD 0QfMCWpg== X-Google-Smtp-Source: AGHT+IH3+GGSb3pTO0PJj239naggwCyTPeUohnOctkXJ42TTKQ67RqVafXHi7gw510NG3oUL+Yfq59/eH9tOQnCTdzM= X-Received: by 2002:a05:6512:2347:b0:546:2ff9:1539 with SMTP id 2adb3069b0e04-5494c36b25amr1877087e87.52.1740770967418; Fri, 28 Feb 2025 11:29:27 -0800 (PST) MIME-Version: 1.0 References: <003dc9936317ab987faa0242f8e33e1cd2fcaf57.camel@j-davis.com> <40c1e76334f2baa747334c8fc513d12b8cb297bf.camel@j-davis.com> <3815127.1740189601@sss.pgh.pa.us> <5ebc188e731ac2b98d68459ce1a9ef3066981774.camel@j-davis.com> <3892121.1740193866@sss.pgh.pa.us> <976dcc37-b629-490e-a052-a057477d062f@dunslane.net> <301492.1740249291@sss.pgh.pa.us> <684274.1740273302@sss.pgh.pa.us> <812817.1740277228@sss.pgh.pa.us> <10bd5e38-c8e1-4162-8dd7-ef65e71170b4@dunslane.net> <1144186.1740338230@sss.pgh.pa.us> <2768649.1740765297@sss.pgh.pa.us> In-Reply-To: From: Sami Imseih Date: Fri, 28 Feb 2025 13:29:16 -0600 X-Gm-Features: AQ5f1JpqU0irMIIzGkmb79tSFLVFSPKVqUyXMSQtVGivfLHJMMV6dLL35uoGMRo Message-ID: Subject: Re: pgsql: Trial fix for old cross-version upgrades. To: Tom Lane Cc: Andrew Dunstan , Jeff Davis , Jeff Davis , pgsql-committers@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk My perl expertise is bit shallow, but I could not find much regarding bugs related to such behavior, or maybe I did not look enough. Playing around with this, "s+", "s{1,}", s{2,}" all of these combinations where we are searching for more than 1 space result in the hanging command, but we really only need to look for a single space before the 'version', so maybe we can just do the below, which works? - $dump =~ s {(^\s+'version',) '\d+'::integer,$} + $dump =~ s {(^\s{1}'version',) '\d+'::integer,$} -- Sami