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 1tm0Tv-003NTU-Cg for pgsql-committers@arkaria.postgresql.org; Sun, 23 Feb 2025 01:08:32 +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 1tm0Tt-002I7v-1i for pgsql-committers@arkaria.postgresql.org; Sun, 23 Feb 2025 01:08:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tm0Ts-002I7U-9a for pgsql-committers@lists.postgresql.org; Sun, 23 Feb 2025 01:08:28 +0000 Received: from mail-qv1-xf41.google.com ([2607:f8b0:4864:20::f41]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tm0Tn-000E0H-3C for pgsql-committers@lists.postgresql.org; Sun, 23 Feb 2025 01:08:26 +0000 Received: by mail-qv1-xf41.google.com with SMTP id 6a1803df08f44-6e65be7d86fso41988676d6.1 for ; Sat, 22 Feb 2025 17:08:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dunslane-net.20230601.gappssmtp.com; s=20230601; t=1740272902; x=1740877702; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=gZHeRnGFCfgkkLdGaofjEbnlTaY3LN13jwitYQF9HnM=; b=NUlqctrbCL/6BYbcPvFDYBMgqinb5H+p8MBbK9a3x1S+nGZ7XHospsdqRQgdjceW7K iyFoWJ/8gMfR27d4g/HnuTmQFiPY0IYHR1Z0+CpR/G1kYMehcWujM/HXH2U5QGYu6nRT MS6cu/vkPgFdPEkgzJvztMpB3ietmsKtnMU/UWrSwVP6aAMB8mTWDgAOlvSfP6UK+VvF ckCH/dkkTsvwSeJSuClF1Kt11rfyI48ORQkXMCAAPFxEdZZDLeCuPIOtYzpk82cA/z33 iP5oozsykeuijUJRyU2DC1KSmKg0r43stTSmE36R4XByehaeiyh31l27VmT2f28jXk9K ilYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740272902; x=1740877702; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gZHeRnGFCfgkkLdGaofjEbnlTaY3LN13jwitYQF9HnM=; b=UXVSW4o2xKzWqvwnETfE+m/bEFH1RNtjOMMscV9/xemJZ452r2p3NF9a76X9z1A/OP 5BzOAuoDAiIfxXDkkvPFPdPLBYcvOdWVZPzN0LlcJYPBDF3jtCjd/MLNGpmgFW5HUmg3 Phg6TdLfhtF9eCMERsQho+qB5p4ZvKYr47PDymUlIbmbHK6WK5zq15VVz07iLtrxUiJl x88v7Cxi62bWB7r30OURG1cNXH3Vv1FnAAd8K762bmCDQtaOE0oEwgV2Sv6Q4LAML0P1 A3BeRwQDVSz/ad9sf6q31Gnhu1USRs/CF9qoXAujLDCH5i6Rmr9CDPF+HjPNeDE3AHDb suIg== X-Forwarded-Encrypted: i=1; AJvYcCVkWoEDsUvU1iRanA/DkChI9tIjZ89/Nxu+r3MKJxn+uPnYR1M3byCUhGB4ch0PpO/MHok5oDhDK5fAxOjNvh6k@lists.postgresql.org X-Gm-Message-State: AOJu0YyJQTR2o11oijUzXCuELoqAF3RO//ZX1iQu1LgdiQ0k31m4zQrj Wnewkq/SulClzMpdfYa1gunt5PAzdIwpGY4D1er94D4TIqcnkoNwkyiraHHZvdSblDM6dVnSt0k rGCKXWg== X-Gm-Gg: ASbGncuRoEnIbkspz/xGoVsYjUGbpsE5OazD1CbSkLM05eXqRyoonkj6E8pnuy8L/US Nc9upkoOjl6LZUfRHkkhLQ+OswJBRWlmMydWkvBk1RFG7c9PekoHdmFhRK7vzkKya4VA+x3cqII RXDkUT0mOsrYE11eKzoWLU+7gdHewIfe8N2c9OurDBBDPXVD7ZdVCgSpjSR70IQV+o97yBU+GIB mAQpxI7bQ0Cy/nlMWq8t5U/a+CUBdRzuETG3gG0BtnpgSyDvbNOwXTxNLs8RUgXRmbMhGzuzsg0 9gI6KM86a88hi6REA6zf2RvvyeFA3ciOZpEY X-Google-Smtp-Source: AGHT+IGsLQB00QGQevijxQ203ttZq6ymxdb/M//mvES2HHvT67ZFiL0ZAINwfAiTEa3EUvdedyexjA== X-Received: by 2002:a05:620a:450c:b0:7c0:7422:17d5 with SMTP id af79cd13be357-7c0cf10205dmr1199456785a.9.1740272902622; Sat, 22 Feb 2025 17:08:22 -0800 (PST) Received: from ?IPV6:2605:a601:a681:6b00::1cb? ([2605:a601:a681:6b00::1cb]) by smtp.googlemail.com with ESMTPSA id af79cd13be357-7c0b9459c71sm504073785a.52.2025.02.22.17.08.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 22 Feb 2025 17:08:21 -0800 (PST) Message-ID: <4f3aca16-5b6e-4231-a13f-ef1c730a8a07@dunslane.net> Date: Sat, 22 Feb 2025 20:08:19 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pgsql: Trial fix for old cross-version upgrades. To: Tom Lane Cc: Jeff Davis , Jeff Davis , pgsql-committers@lists.postgresql.org 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> From: Andrew Dunstan Content-Language: en-US Autocrypt: addr=andrew@dunslane.net; keydata= xsBNBE7KWFkBCAClridxur2AIc7eW2AR7izbfp3EnNefie2HbLF0izW5Ik5UjX2HBXBx4syI gY6b0ugohXrr274+baoAlvSbq6cAoQuEVrk5IZFzt20b1Xkx65FwGSEj526yiKLocqkJceSq Xr9xcA5SGY+FZv441chh5SU92v4q6z+6LPpoHOh97ptAVXZYNTtU0LevyvD5lja0TzbvJm6C eFXitJfnm1pLEr0DGJCR/iUOl/N62Kh4855zZC7NHIjQHPOvV5Stz/l5ilDhvGVk+xkXFPys SjZoUr1rXhYLpiyi5sR0X9FHXT0KnGuz1F5ERO7ZTLSSQ6fJwPj6gOk9K+vvoKvoeql5ABEB AAHNJEFuZHJldyBEdW5zdGFuIDxhbmRyZXdAZHVuc2xhbmUubmV0PsLAmwQTAQgARQIbAwIX gAIZAQULCQgHAgMiAgEGFQoJCAsCBBYCAwECHgcWIQTkPlhGHfx8v0RpFaWZ+n/LWfw7gQUC ZFlxxwUJGVGAbgAKCRCZ+n/LWfw7gXikB/9ZdcUy6CTBFIIuL/bVsc1eLEW/gJBjJBF6HxNY xgEkAgXAp4Lg4A5U+QB9GouFr7+GYxF0BU4hzoGhNPUWltxnHdMWP8nC/38LAqgMi8L/bbsm HW5YPBdWYaAZAPJQVfOAgjTbRUb26KSprpyrrJKW0ZmrZfjhNPcQ72jpWzoPLQqx2X6B0fru 1jq+cBh8lb6r1mJTim1T3JIn+F/v5VpdQS+EL8xqsHkfzKjIPsW3CIXpkypSk6saA55Rkkbl 26AW8ftPVB0Q6Lnn6FLt9CP0MGNixBQ55yq8r1K+nCBvCCjvQjM8RDm0UUum0WNl+ifQgTLO E8TWEnwVtkBf+3QWzsBNBE7KWFkBCADRnOM0FCzsYW6jtncg+dWIagjUZpvaClmqn/sJluLa Q3v1VXMQJzYs3eC1gh386W+XBwLRpDj3jzH81lX+p73Re3d3oJW7X+ffsxuzu5ZVdMUkqBYo nkAbKxr6gyJ12F/+JkUVzLcoTN+d/7YsQvUVi7NaKH8mJgjz112O4fUe3p9wfAaFa0RXHc5S GPzRTYRRlv/XZBIho4J2tkZOnteZJZ+GbxQVlINt6fd8P6al3MWOvpP/ExJPguEfjOsO6Njy xjo3WfpD4lHMOR/Oc3/8mScEF84rF2jXbsFgelWnbPWAvXY+pD0dXOFRkagGmC/viwBDqq5b 5tk76kKmUbZxABEBAAHCwHwEGAEIACYCGwwWIQTkPlhGHfx8v0RpFaWZ+n/LWfw7gQUCZFlx 5wUJGVGAjgAKCRCZ+n/LWfw7gf+iB/4g8CPY5jihf5r/8EsoIGe2H+dpVmpPF8YGBzTIvCz/ fQoOq8AX/pE76QEuFnFZWfjw+wgBXgCVmkox2Eflkk6z4ND3pcwGZ6CfCxTQCDk/dij+2DQ4 6bmDCy/sBgcbz9mTpoLC11HLoPae6YN9nBNQRZDcEFEu54OaVOqlIdbA6m+POIBCXZdHOFc0 WoDTgxHRzC1jgQNidyd6tKqcsVJs0dzF0oKTmFFmUAqTdJO12LBuNA1rlqrR3EtpYk8B/wtS 5dIMD7Q8hwQpL+4C6GNpb6ZKnPkLi47pDOLhz2qBrqN+rqUEsT3YnExYpzj5yOBi+FlmV1Hw 49QYe1sn2ZPs In-Reply-To: <301492.1740249291@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-02-22 Sa 1:34 PM, Tom Lane wrote: > Andrew Dunstan writes: >> On 2025-02-21 Fr 10:11 PM, Tom Lane wrote: >>> ... It seems there is >>> something different between what TestUpgradeXversion.pm is doing >>> and what 002_pg_upgrade.pl is doing. No clue what, although it >>> does look like an additional round of analyze'ing has added more >>> stats than were there before. > Hah! Looking at the script with less bleary eyes, I see it does > this after pg_upgrade: > > if (-e "$installdir/analyze_new_cluster.sh") > { > system( "cd $installdir && sh ./analyze_new_cluster.sh " > . qq{> "$upgrade_loc/$oversion-analyse.log" 2>&1 }); > return if $?; > } > else > { > system( qq{"$installdir/bin/vacuumdb" --all --analyze-only } > . qq{> "$upgrade_loc/$oversion-analyse.log" 2>&1 }); > return if $?; > } > > So there's our extra round of ANALYZE right there. I diked out the > vacuumdb call and things are working much better. It seems to pass > for branches back through 9.3, and upgrade from 9.2 has only some > diffs for relallvisible (see attached). We still need to figure out > why that is, but a quick-n-dirty patch could just be to make the dump > comparison logic ignore relallvisible diffs. > > We might want to make this vacuumdb invocation dependent on version, > but I could also see just removing it entirely. > >> Here's what I have so far: >> . for HEAD/18 disable running the analyze script / vacuumdb --analyze. >> . turn off autovacuum on the old and upgraded database. >> . reverse the order of testing so we do newest first > Check. > >> What I'm thinking of doing is running all the eligible upgrades rather >> than stopping on the first failure. > Seems like possibly wasted work --- I'd be content with > newest-to-oldest. > > OK, went with that. crake is getting a failure at 9.6 like you saw with 9.2, but things are a whole lot better than they were. I have updated drongo and fairywren with the new code too, so they should also improve before long. cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com