Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lJYMX-0000Wd-82 for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Mar 2021 09:09:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lJYMW-0008Vl-4C for pgsql-hackers@arkaria.postgresql.org; Tue, 09 Mar 2021 09:09:08 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lJYMV-0008Vd-Qo for pgsql-hackers@lists.postgresql.org; Tue, 09 Mar 2021 09:09:07 +0000 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lJYMT-0006fd-8X for pgsql-hackers@postgresql.org; Tue, 09 Mar 2021 09:09:06 +0000 Received: by mail-pj1-x1033.google.com with SMTP id i14so551783pjz.4 for ; Tue, 09 Mar 2021 01:09:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=cb6NPnhGw4VgULjF69vc+VLStDXTMUNw8C8Z1NnZ0zE=; b=B7SdeoqAlq9UmHaeik2T8cS/Md1HpJ/7pyF8LL8gP0+wTh95hVrq6rXthwJjZxwJ8y XJtK+sK3qvlBepY4RVDwXAFo4LciRVOaPiY/LggO4CBngc3Nv6HE40/f/oU2eTgrNJil saO7IOH+Qyro7xrhXB1Nok/9he3m+3TUjSGx8CTdfnt/IL8o2sMKlkKR+doNVpzv0ODp 6dXK7mpuZi656xYqtVEsK+lSKLxzHef+r6N1ZpckGlT3t4s7EJTxoEYGHiX++SR/8Cbt UiJwXsnW8xRlUdLT+o8A06gjxn+fUyOZjsS+UEKXMijTmOjQVBj2p2ReVt/0k2RyNCQ5 k6cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=cb6NPnhGw4VgULjF69vc+VLStDXTMUNw8C8Z1NnZ0zE=; b=agsqWNDjZLBfgA6YDqUN6zjN5Mcem94UkrjCVaJgzxHQUPvLYLwEcOkfRvj6hW2WWF WvyUqmXMvuz3JEmUFkCMylB35rHHlHG2N7am/U1vONiOL/XNJuWPTbMMfPyapNaKomBu RX6kL9J3gjVcSk/66Ejp5TXP+3SRYzcaHXOwoEYZ8+Df1xq6nByd0ytwiL6Rj0S+CwpC 7hZaoRyo5NhbChsVkIxlfYZKL3YLxntV1T41E41RUjY7g4wbKGoMwVFb2Tkk+V8X+L+W L0fMm9Z3EoimLL4Ch2UATMlTvJsv4OU8RdIURfWxEdUsgB4xVNka+/Kt6I/XpEFrRdhB df1Q== X-Gm-Message-State: AOAM530O0VDK7F6hDJXJOVLfxjP/HmLBF1tiR+o9IsHLxTQ9GHEZNfg1 faUblfpH1RFLFHcRO4l/Dkg= X-Google-Smtp-Source: ABdhPJznhI0KFVzVm//+xBgWi9xSRP7pXJ//ufAycXUPLyj+PnM+lTyvwqeM7wjdCDW020OiItfwNQ== X-Received: by 2002:a17:90a:3489:: with SMTP id p9mr3868388pjb.68.1615280944104; Tue, 09 Mar 2021 01:09:04 -0800 (PST) Received: from nol (2001-b011-0008-97ef-7556-9f0a-3bbb-1260.dynamic-ip6.hinet.net. [2001:b011:8:97ef:7556:9f0a:3bbb:1260]) by smtp.gmail.com with ESMTPSA id z2sm12781920pfc.8.2021.03.09.01.09.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Mar 2021 01:09:03 -0800 (PST) Date: Tue, 9 Mar 2021 17:09:37 +0800 From: Julien Rouhaud To: Erica Zhang Cc: pgsql-hackers Subject: Re: Add some tests for pg_stat_statements compatibility verification under contrib Message-ID: <20210309090937.4eca74eme7jvcvhi@nol> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Tue, Mar 09, 2021 at 11:35:14AM +0800, Erica Zhang wrote: > Hi All, > On the master branch, it is possible to install multiple versions of pg_stat_statements with CREATE EXTENSION, but all the tests in sql/ on look at the latest version available, without testing past compatibility. > > Since we support to install lowest version 1.4 currently, add some tests to verify compatibility, upgrade from lower versions of pg_stat_statements. The upgrade scripts are already tested as postgres will install 1.4 and perform all upgrades to reach the default version. But an additional thing being tested here is the ABI compatibility when there's a mismatch between the library and the SQL definition, which seems like a reasonable thing to test. Looking at the patch: +SELECT * FROM pg_available_extensions WHERE name = 'pg_stat_statements' and installed_version = '1.4'; What is this supposed to test? All those tests will break every time we change the default version, which will add maintenance efforts. It could be good to have one test breaking when changing the version to remind us to add a test for the new version, but not more.