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 1rIuJP-00ArnW-0v for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Dec 2023 17:36:51 +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 1rIuJM-000V1j-PY for pgsql-hackers@arkaria.postgresql.org; Thu, 28 Dec 2023 17:36:48 +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 1rIuJM-000V1U-BX for pgsql-hackers@lists.postgresql.org; Thu, 28 Dec 2023 17:36:48 +0000 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rIuJJ-00CdLw-Lz for pgsql-hackers@lists.postgresql.org; Thu, 28 Dec 2023 17:36:47 +0000 Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-1d44200b976so15932235ad.2 for ; Thu, 28 Dec 2023 09:36:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20230601.gappssmtp.com; s=20230601; t=1703785005; x=1704389805; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=ZbacCGBXTZdp7kb6vbFPA5E9jleusBcmWHCZk88tRe0=; b=umKP9/IeOe1phf1Dcna+XEQ6M4Q63Zm7yJ60I3aHk+1DxSDBODYeJYjx4MKZ8bRZTd ldgey9Kz9A8HktJlrA2bzcZeKZ1zWnDGS1uKVEAXem1OuxcK+8/6aGKrsS4FacLjR9Ny 9QVf30MJP+mWf/O9Tlynu0/52GJvCIFFq3QFm55NSn3FS+YxyM4aV5eIWVnlnEZjtiWh 0iD3CoySKXEVq/mDsyS5jpoqB3Uk/51ntlPRpbiV+LMc2Tk4//ioAn2v/67ID3ML1kIz z0VVnPjN/mu5iKFdl5qlxb7luvqS+ThSXJ3QSYF4ZL6A7HbFyYkBwEgUHum8FB6XGyyy 9gCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703785005; x=1704389805; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=ZbacCGBXTZdp7kb6vbFPA5E9jleusBcmWHCZk88tRe0=; b=SB4EGrCp9fygjGaO2gosIhPySpjoDAqPJ2HWY2aVX4DjKBTtm3agZyC6RmRL/saOQE dgJx+cnZIllLnqf7D7r3yaaUUylw620JWcZ9VtupBwaPkAUfmAAAFB/KxVGF+njCXtVe 7Ha22w6dFTOViuYKwG+m9/GAh12gyEU9tL+hJq8WF6yQReAlGQY0+hF6sHK1YnczPDq2 FWBu2UuA4g84hLR63Aa5sEw/58hzMa+nEvWXbx6fQSRQvMVfY//Yeuym5Us8kzgI94Ru dtUye47hy7G6LEaR8pAQuKC8Vizub0OwxUqs1XfUGK3cJbC98FExMYED3L6J6h+ZidSr ywJQ== X-Gm-Message-State: AOJu0Ywc6akx5qW0H8gikxsoAXxIx2FY3nYDPauacIS2qH1vL90Qadz9 RRzXUWJoxhPU9QcmzkP3ZJdzxVOdFV/o X-Google-Smtp-Source: AGHT+IFyX81kmutM183FXGsZJ8NPoFoq7Pa4dy/fv8hEtCAqjwIo8vhKUEY5ar+m2xB7PmICC3tHwA== X-Received: by 2002:a17:903:11c3:b0:1d4:75c6:953e with SMTP id q3-20020a17090311c300b001d475c6953emr3156960plh.111.1703785004670; Thu, 28 Dec 2023 09:36:44 -0800 (PST) Received: from jeff-laptop.lan (c-76-102-242-158.hsd1.ca.comcast.net. [76.102.242.158]) by smtp.gmail.com with ESMTPSA id x19-20020a170902821300b001d4816958c2sm3524582pln.166.2023.12.28.09.36.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 09:36:44 -0800 (PST) Message-ID: Subject: Re: broken master regress tests From: Jeff Davis To: Alexander Lakhin , Noah Misch , Andres Freund Cc: Alvaro Herrera , Thomas Munro , Pavel Stehule , Matthias van de Meent , PostgreSQL Hackers Date: Thu, 28 Dec 2023 09:36:42 -0800 In-Reply-To: References: <20230829155424.bem25upvaefkqqyy@alvherre.pgsql> <20230912022358.d5ln25sglrntwaia@awork3.anarazel.de> <0d47e5ecc037b3908149aad5f2a987793cf938bd.camel@j-davis.com> <20231011005434.34oc4v4pv6ajqkss@awork3.anarazel.de> <20231213025619.70.nmisch@google.com> <97c9d15247c5919b444b2e217b4c886271be0ea5.camel@j-davis.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu2 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 2023-12-28 at 18:00 +0300, Alexander Lakhin wrote: > AFAICS, before that commit SELECT getdatabaseencoding() in the test > returned SQL_ASCII, hence the test was essentially skipped, but now > it > returns WIN1252, so problematic CREATE COLLATION(locale =3D 'en_US', > ...) > is reached. We do want that test to run though, right? I suspect that test line never worked reliably. The skip_test check at the top guarantees that the collation named "en_US" exists, but that doesn't mean that the OS understands the locale 'en_US'. Perhaps we can change that line to use a similar trick as what's used elsewhere in the file: do $$ BEGIN EXECUTE 'CREATE COLLATION ctest_det (locale =3D ' || quote_literal((SELECT collcollate FROM pg_collation WHERE collname =3D ''en_US'')) || ', deterministic =3D true);'; END $$; The above may need some adjustment, but perhaps you can try it out? Another option might be to use \gset to assign it to a variable, which might be more readable, but I think it's better to just follow what the rest of the file is doing. Regards, Jeff Davis