Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hmB84-0002RN-Qv for pgsql-general@arkaria.postgresql.org; Sat, 13 Jul 2019 06:03:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hmB82-00017y-Mk for pgsql-general@arkaria.postgresql.org; Sat, 13 Jul 2019 06:03:26 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hmB82-00017d-5C for pgsql-general@lists.postgresql.org; Sat, 13 Jul 2019 06:03:26 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hmB7y-0007dA-Nb for pgsql-general@postgresql.org; Sat, 13 Jul 2019 06:03:24 +0000 Received: by mail-pf1-x444.google.com with SMTP id r7so5233343pfl.3 for ; Fri, 12 Jul 2019 23:03:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=BZtFBQ2u+Grq6x0opUQdgXd+xCBUPjbJe1nrEpyUweM=; b=HCI7Ve32Etdadvy+fbf/mkE+yKSL7ItWlCx2l09CijDnmgJAfrQxQ7Af6ROJ804F6c L/CsMxl0eu6UxYjrwW/CNLyYN0Spb6x6MXQm+0MunMOPv9sccjiwjv9JC2enk6WfHugX IOCrV1QlWNpO90WB7BxtmG9s4RJXrTNRy1fTIZFfklmEw20I6jrJzCrw78msB6egkt4b Lf2UkzS0nIrdd8KflyOp75O76JBOJ8Gd0SN0NXkf952GI/1L8iNSILf1bJg5LRLQz9jK Tzw90aW/OahT5sBWB+SnoPZmK8NXltiuyzvmp/d0od96IDld9sGbXTP26wPvLF4s2Sem fVBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=BZtFBQ2u+Grq6x0opUQdgXd+xCBUPjbJe1nrEpyUweM=; b=i2FW1bwXN1xlCUiObJ+wKmV8JvVG1ZzbfqpDmjszpIqFKDldh7ncU+24URW2GETwTu PuAcRmPRfu2aI0366vjat6JQirBWLsW7Wo9oOakKoofBt8TmjZ0cw2Kpyc1cN5Tk/vUy nyXuKzldHeUdW6ZmZED10PDuz+MwDK4lWJwq5DwoH/EY7nTlTfp4wdBh5kbgdvenkT4Z SAfcVniLohg8kHD/kKuv8xp+8Rc3Kl7r/1lbQCOexvsA1SiEJ5Fzo5C8eNQe0Lb2kL8k So/UVm8iB9UNmn4wbC18hCVcFQtWl3YehEe3Xlq7ozLuOXK4OgmXHmLeZy6NnTkWAP8a 3Xrw== X-Gm-Message-State: APjAAAUMcP0gSAPA/bh3hjF8+1kUpu4gvEzOZdktM1c8qtUkbSkozubP 4Ba70CZ0N4sQIDqziEZZi67sDZ5QysmGR4xnTirVpy2GIS/Hin44hEWLgN6W1Q8nF4seVJNFAFZ GHNQUYFYKCEfgzD/votpM3l0rLVuvXwNBVGolAXkGdjrNLBhXcRxM7CJ6A89MxRX2p9iCUJlQp6 cXFbYHqR0N/XHu X-Google-Smtp-Source: APXvYqysaLr7+KNYZK8Y7F6ocVXud4gcv63XJgPlneJpwNyMnfWLpsMqeSUBusXCXZP8yN72ciQ6KQ== X-Received: by 2002:a17:90a:ac0e:: with SMTP id o14mr16760114pjq.142.1562997801320; Fri, 12 Jul 2019 23:03:21 -0700 (PDT) Received: from osaka.octopusnet (p274154-ipngn12401marunouchi.tokyo.ocn.ne.jp. [153.201.73.154]) by smtp.gmail.com with ESMTPSA id 195sm16742941pfu.75.2019.07.12.23.03.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Jul 2019 23:03:20 -0700 (PDT) Subject: Re: Testing an extension against multiple versions of Postgresql To: "Rhys A.D. Stewart" , pgsql-general@postgresql.org References: From: Ian Barwick Message-ID: Date: Sat, 13 Jul 2019 15:03:17 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 7/13/19 10:55 AM, Rhys A.D. Stewart wrote: > Greetings All, > > I have both postgresql versions 10 and 11 installed on my box. I'm working on an extension and just realized that 'make install' installs the extension to the 11 server, but 'make installcheck' runs against the 10 server (I had previously installed the extension there). > > Running psql without specifying a host or port connects me to the 10 server, so I suspect that both make installcheck and psql are doing similar things with respect to connecting to a default server. > > So the questions are: > Can I have make install & make installcheck run against multiple versions at the same time or how do I tell the installcheck to run against the 11 server. Try setting relevant environment variables [*] for the target version before running "make installcheck". [*] https://www.postgresql.org/docs/current//libpq-envars.html Regards Ian Barwick -- Ian Barwick https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services