Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1crQPt-0004Yp-V6 for pgsql-committers@arkaria.postgresql.org; Fri, 24 Mar 2017 14:42:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1crQPt-0007jU-De for pgsql-committers@arkaria.postgresql.org; Fri, 24 Mar 2017 14:42:13 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1crQPs-0007hs-OU for pgsql-committers@postgresql.org; Fri, 24 Mar 2017 14:42:13 +0000 Received: from mail-qk0-x230.google.com ([2607:f8b0:400d:c09::230]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1crQPl-0007vc-Lo for pgsql-committers@postgresql.org; Fri, 24 Mar 2017 14:42:11 +0000 Received: by mail-qk0-x230.google.com with SMTP id v127so4021106qkb.2 for ; Fri, 24 Mar 2017 07:42:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:references:cc:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=9TuuYw5wMPv7Zyl6b5LQUnQS1JtnwzIV8drEwWeBBlM=; b=ADZbxzxn2aC3OxLvEf4qgtYH6OB66Y3rWj+nI6rS5Btqe6zyJb/zHw7bzQD9SrzCOH K/QBUCRDpg5Kn1xk+Lp2xiIDIZuda2zKrA2gUyfK3w9nZP2jB54kwymhXaoQZ7orSMu/ R8sMD7B5ZwdJlmPSJ8tixLl4gLFIFW/dSUjMhUvl1arhPt8H0ZDgXLU33m/03J/DfzH8 jv8HVyd0jpWREksYg0tJRGCtwrBuTGDKgqRiL6o0hkDYfw9/QCqAplJRH6a2mvLmvxee HLtm9ToE55uamRDGVVQ9XO91zdqTU7Z/FxxhPFJOHoHJMwG/VDxWmlMYd6UC6pMN6IDp 9EXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:references:cc:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=9TuuYw5wMPv7Zyl6b5LQUnQS1JtnwzIV8drEwWeBBlM=; b=eLMLSKTFNBcbQNLfCq9C8HKyxDY2W0pXXtdcdBivT+vePG7B9Nxa5WnJDOjLNyt+QW HMMYDTW5oAIsb2JrkAvtjfuKQlrNj+6kgrEnRY//Z57sTm6GccU4jf6V13w1n8RWHIkO 9M2Rqx4NgVJr9fSWyWk1TMtArc9jLja4xYUmOBBrCQQgB5lftNm2dK018PTxzkkP9Dcd 07J9DOzrudDPelX7GNatmH5NxHyJ4Op8lLW/4908So59w4xjdL7Cx2iIxLbRPUD+Ll5a /GEuAJqP+AIw8dOF2ex7anSBgDvnLlVgX8A1puOoj3MqSwh1pTq0NJ5u1zNQB69YlAv0 BBVQ== X-Gm-Message-State: AFeK/H12xbkmbOV8AoCrE52HYXz1yOMWuXaaG7/IaY/KSumAHoI+kZ5XbbO4edHrTWV4R1Gkik7WCYg+D6Beq+Uk26zb8Wyk9tPhclfUaicotIcxNmNsVp7pvVikxY92bm1KbAr7UiZh//4Lx7/+PTRAQ2gX1+GbQ2RdR1RWq8cAuGwbfWxs8DdL2NxVaDQPM7rGQVzNa5x9Pa/M6pM= X-Received: by 10.55.46.5 with SMTP id u5mr7179111qkh.162.1490366523674; Fri, 24 Mar 2017 07:42:03 -0700 (PDT) Received: from [192.168.10.146] ([98.122.164.227]) by smtp.gmail.com with ESMTPSA id 1sm1638213qtb.40.2017.03.24.07.42.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Mar 2017 07:42:03 -0700 (PDT) From: Andrew Dunstan X-Google-Original-From: Andrew Dunstan Subject: Re: pgsql: ICU support To: Tom Lane References: <0762156b-8258-0865-50d5-57b7c47cff71@2ndquadrant.com> <9886c4bf-2cc6-4db2-5512-a74148a752f8@2ndQuadrant.com> <32043.1490320966@sss.pgh.pa.us> <1960.1490327585@sss.pgh.pa.us> <56aed98f-7cf1-018e-23d9-fefd7adf7fd3@2ndQuadrant.com> <15963.1490361994@sss.pgh.pa.us> Cc: Peter Eisentraut , pgsql-committers@postgresql.org Message-ID: <79bfe88d-bb6e-5464-9fd0-c3137f52ce40@2ndQuadrant.com> Date: Fri, 24 Mar 2017 10:42:02 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <15963.1490361994@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org On 03/24/2017 09:26 AM, Tom Lane wrote: > Andrew Dunstan writes: >> On 03/23/2017 11:53 PM, Tom Lane wrote: >>> + ERROR: collation "en-x-icu" for encoding "SQL_ASCII" does not exist >>> >>> I can reproduce this with vanilla configure options if I'm running >>> with --with-icu and LANG=C. In short, this regression test does not >>> work in C locale, and you need to find a way to disable it in that >>> environment. >> Possibly something like this: >> REGRESS_OPTS = --dlpath=. $(EXTRA_REGRESS_OPTS) >> ifeq ($(with_icu),yes) >> +ifndef NO_LOCALE >> +ifneq ($(LANG),C) >> override EXTRA_TESTS := collate.icu $(EXTRA_TESTS) >> endif >> +endif >> +endif > That's better than nothing, certainly, but it doesn't catch all the ways > that C locale could be selected (LC_ALL, no valid setting for LANG, etc). > > I suppose that what we really want to know is what encoding will be used > in the regression database. I wonder whether the Makefile could find > that out more directly. Although maybe it's time to bite the bullet > and teach pg_regress how to select whether or not to run the test --- > that would have the advantage of (probably) working on Windows, which > no amount of Makefile-hacking will do. All true, although Peter hasn't actually committed a change that would enable the test in MSVC builds, so that's not a danger right now. While the change could be made more robust, along with 3 lines of change in the buildfarm code to make sure LANG is set in appropriate places it is enough to turn prion green, and actually running the tests when testing en_US.UTF8. I agree we need a general mechanism for running tests conditionally. Let's not wait for that, though :-) > > BTW, is there a reason that override isn't spelled more like > > override EXTRA_TESTS += collate.icu > > ? That seems more readable and idiomatic to me. > > +1. cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers