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 1n4p2W-0003oN-HU for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Jan 2022 19:00:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n4p2V-0001Gy-7x for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Jan 2022 19:00:07 +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 1n4p2U-0001Gp-Sq for pgsql-hackers@lists.postgresql.org; Tue, 04 Jan 2022 19:00:06 +0000 Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1n4p2S-0000F0-Ie for pgsql-hackers@lists.postgresql.org; Tue, 04 Jan 2022 19:00:05 +0000 Received: by mail-lj1-x230.google.com with SMTP id p7so61358973ljj.1 for ; Tue, 04 Jan 2022 11:00:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=ZkhLbo9ovteFbxqyCKeYiZxt3CaWW/CyQCcM1/6aoDk=; b=JMS1fX21z2cNPfLel4vh+5KLIHd/+MP+GvUveXXVliUpjw1+z0BWyFJb7F39M0LC8L Kz6O4EEXYqjft10/9FIeKKgcW+gePMRMQCRlJemKY17rcUD+Dvf/HqH3GjJdxCP9Inuj zlJS0ORu5setnXJSG+AkB5S2tTQpmiJX76X3nKaW5rNBlE9QLE1uh6sP7OzcxkQQZVe9 Vco+sl6LrdCtdMnfMFFocvjSamBTyywC8l4gUGQMugs62OGDUEP9j2RPzTyjXcLMTkLO hqkM8EQPy9Tg1+rzXXtQBOQrCBfLbeAd5DMGJYdEmX4up7WcXWgN6mkxY88a0kg2BeG1 fdaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=ZkhLbo9ovteFbxqyCKeYiZxt3CaWW/CyQCcM1/6aoDk=; b=rwDgSUBSLjvW7qscMFziac5mFqYFoexaCYJyJR69t+YTjRPjim11BBSfm4i+R9C+uA 0+QgdLfh6YmQuvZpnu6l/uOKlVgVTzVO3Ee8FhDsixUuh+sfrkNiHu0Lj+o5YtmE71Fi DTL1Y6XAL3HE7zK1V8/1BspkE82e6RZFRJR+3K1laqtd0kn1b8FLXrBFq2cwW5eIoz5N SFfOWs5Xhn3hbZt3kgjOgtCzh1BtvQ2H/4yeoNI1PTYhI2tfoktJf/md5ua6htDOEHKR Zs87g8om3PDUrCsro5dH+ixGnmz4roqoncStgp0KbJkSFuYXxo+NO5ycdIfTqCj5CYnc qWjg== X-Gm-Message-State: AOAM530ozhtNqcTuMBLOiNCytuB9b6qxIyxuoTRCL1olAwAsoa6hvOoJ qHlGA2DYvFcxvcwlDmnBqio= X-Google-Smtp-Source: ABdhPJxeNwLUkxg5gESV1hb3i8tr8dgBFnFygGspfKQ6jfhih0G45ZIRPaUoPVsx1VU08E3Ff+Lcrw== X-Received: by 2002:a2e:9cd8:: with SMTP id g24mr17568401ljj.509.1641322802952; Tue, 04 Jan 2022 11:00:02 -0800 (PST) Received: from [1.0.0.7] ([178.155.6.84]) by smtp.gmail.com with ESMTPSA id i19sm3983678lfu.37.2022.01.04.11.00.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Jan 2022 11:00:02 -0800 (PST) Subject: Re: Proposal: remove obsolete hot-standby testing infrastructure To: Tom Lane Cc: pgsql-hackers@lists.postgresql.org, Simon Riggs References: <3911012.1641246643@sss.pgh.pa.us> <473567ce-ec6f-416f-fb0c-aba4e5480333@gmail.com> <4027102.1641310380@sss.pgh.pa.us> From: Alexander Lakhin Message-ID: <980bc922-692a-2d95-3723-b5aa5f627c8f@gmail.com> Date: Tue, 4 Jan 2022 22:00:00 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <4027102.1641310380@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 04.01.2022 18:33, Tom Lane wrote: > Alexander Lakhin writes: >> It's hardly that important, but we (Postgres Pro) run this test >> regularly to check for primary-standby compatibility. It's useful when >> checking binary packages from different minor versions. For example, we >> setup postgresql-14.0 and postgresql-14.1 aside (renaming one >> installation' directory and changing it's port) and perform the test. >> What've found with it was e.g. incompatibility due to linkage of >> different libicu versions (that was PgPro-only issue). I don't remember >> whether we found something related to PostgreSQL itself, but we >> definitely use this test and I'm not sure how to replace it in our setup >> with a TAP test. On the other hand, testing binaries is not accustomed >> in the community yet, so when such testing will be adopted, probably a >> brand new set of tests should emerge. > Oh, interesting. I definitely concur that testing compatibility of > different builds or minor versions is an important use-case. And > I concede that making src/test/recovery do it would be tricky and > a bit out-of-scope. But having said that, the hs_standby_* scripts > seem like a poor fit for the job too. AFAICS they don't really > test any user data type except integer (so I'm surprised that they > located an ICU incompatibility for you); and they spend a lot of > effort on stuff that I doubt is relevant because it *is* covered > by the TAP tests. An ICU incompatibility was detected due to our invention [1] "default collation" that is checked upon connection (before any query processing): --- C:/tmp/.../src/test/regress/expected/hs_standby_check.out    2021-10-14 04:07:38.000000000 +0200 +++ C:/tmp/.../src/test/regress/results/hs_standby_check.out    2021-10-14 06:06:12.004043500 +0200 @@ -1,3 +1,6 @@ +WARNING:  collation "default" has version mismatch +DETAIL:  The collation in the database was created using version 153.64, but the operating system provides version 153.14. +HINT:  Check all objects affected by this collation and run ALTER COLLATION pg_catalog."default" REFRESH VERSION  --  -- Hot Standby tests  -- I admit that we decided to use this test mainly because it exists and described in the documentation, not because it seemed very useful. It's usage increased test coverage without a doubt, as it requires a rather non-trivial setup (similar setups performed by TAP tests, but not with pre-packaged binaries). > If I were trying to test that topic using available spare parts, > what I'd do is run the regular regression tests on the primary > and see if the standby could track it. Maybe pg_dump from both > servers afterwards and see if the results match, a la the pg_upgrade > test. Bonus points for a script that could run some other pg_regress > suite such as one of the contrib modules, because then you could > check compatibility of those too. Thanks for the idea! We certainly will implement something like that when we start testing packages for v15. We've already learned to compare dumps before/after minor upgrade, so we could reuse that logic for this test too. > I'm happy to keep the hs_standby_* scripts if there's a live use-case > for them; but I don't see what they're doing for you that wouldn't be > done better by other pg_regress suites. Yes, I will not miss the test in case you will remove it. I just wanted to mention that we use(d) it in our testing more or less successfully. [1] https://www.postgresql.org/message-id/37A534BE-CBF7-467C-B096-0AAD25091A9F%40yandex-team.ru Best regards, Alexander