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.96) (envelope-from ) id 1vdpSX-005KUA-1P for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Jan 2026 12:49:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vdpSW-002079-11 for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Jan 2026 12:49:49 +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.96) (envelope-from ) id 1vdpSW-00206z-03 for pgsql-hackers@lists.postgresql.org; Thu, 08 Jan 2026 12:49:48 +0000 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vdpSV-004t2f-1a for pgsql-hackers@postgresql.org; Thu, 08 Jan 2026 12:49:47 +0000 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-64d30dc4ed7so6086022a12.0 for ; Thu, 08 Jan 2026 04:49:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jeltef.nl; s=google; t=1767876586; x=1768481386; darn=postgresql.org; h=in-reply-to:references:from:to:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=bKPJAl9KJcorzfmH5ivXWRvpCcqe+Tu7ifHFgK1tfUg=; b=bBiOl9UFcRsnaeAiZeTyQyJQwXGD3Gvf+7hc7afuIiLc7WFsmIjwedWoPWoxcP/i9m m7u0brLcl3ule/qgdgZw8vLDgK+O83skiowotWWONeRzZx+miMksMEqQi0NDLcezgAp9 VNM3ehCmlWQ7prOyi56ego558zZa2sjSw2i/5eaFHx097HN+qo/EJIKRXHUH9+w7W5VQ 1H53ajds08fderWU/nJ625XAjoCn5KMje7YUd6l5ZVzzyVLAb6fcnuo26H0/LDkpy47j yK2duDBXaMY3z/VNrH2sPPjudgB/cDOYJDJPDT1xSTIFGIrWTYnsUkCEWzMYOyqzgbM4 kfvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767876586; x=1768481386; h=in-reply-to:references:from:to:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=bKPJAl9KJcorzfmH5ivXWRvpCcqe+Tu7ifHFgK1tfUg=; b=n4DjFrPPXhKpt3tnLvafv+ar4XNRlwWEQaOiMKjnPkcsANSkBIdUFyxL4zIzHPEoif mB3r7582h9usPH/9oOCy7PArAGc4yP2VezU+gdNm12o3JYA13ns9tJtDxus1sGZSpCOA EHWMXQixYstXNS/y46RgsX7H4bcJvjk9BcCn1b0u/ZFHY4CGGNGb4pjJnKXV7chwYQIY VgzU66+Q4H5AqRi5denrL6ZVr1fJyeHcKf5V7ICYmR063NqWiCY91Ku5sr2jCPfUsxC9 XaqjzTUuLMnAPPCHa3mYUjsBszSgnHodu5fzwtPjeqPWorp+wCp/Xs+tfie8iHqKtWfa X0hA== X-Forwarded-Encrypted: i=1; AJvYcCUFepLJS83JsWM1cUHX4aAQ0FFPhRMh0UyolhxVjaJQcwNaSzndzCFJWvFUJmKhYwkUUQK2CZO3TgWS7lSN@postgresql.org X-Gm-Message-State: AOJu0Yy8koLpYRWATwsi59ZBZyAxEq9a2rIEWjh7ImszF4GNSUNKZ5LE TbtJnxZUsjUwFEn73ASJ+GVYW5f2toK4hrlJWyuJbUF3uaPigrA2SXjYHdvEQpiBUC8= X-Gm-Gg: AY/fxX55tKkpsc/4IiqJ1D+yr6yMwbB2X0um08XE09P11fSK0frz5IVFZ8iq04focWh uz7cWiEHFvBbDLlZcZhtjLKnoCwmzApT7DR6SD58x3yS4Ct9S7K5IcU6wjWloz8g8h4TRl+XkAY jmHz+Kp24bXjcZ87bD7J+SM5OCiY4A3JPwEV3hrl9r1WP31phOGAfcGhpTHtpsuYKQYPvETy96a /g44FwJTVOxIKV0zzKHm5/5N1jDrq0uqu0UKWv1W27qTd22tv/N9DHI+3BuDfvSD7PdL5V3Eyan oMdhSr0TAtrbG1XtMY5Tu006RAvmZbeOkjmGR3WrF5Yc4eig/HteN581xYCEHTyaJbX6b4i0/Mc cT7rhEJZJB/hgaDxxyquOw4XETmQyxmOmIx5yYPfvxqUxVYu5GxNDtsOmisyylCNd3gXI1ZqAqt dCJoY9YjHAl5XvPWeaQK/ZI2HtCKqRLFSUpnOU/mGPu5kqFyPX X-Google-Smtp-Source: AGHT+IFeWYn97RIF6KU7tjaIhNJBvZyRKIePaYS/PttfMiM8X51aUWiPGi6Fc1DSJD6ltZdEQO2qoQ== X-Received: by 2002:a17:907:72d6:b0:b80:40d2:9652 with SMTP id a640c23a62f3a-b84451bcc0emr574548166b.65.1767876585628; Thu, 08 Jan 2026 04:49:45 -0800 (PST) Received: from localhost (037153217001.static.ipv4.heldenvannu.net. [37.153.217.1]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b842a4d029bsm814249066b.41.2026.01.08.04.49.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Jan 2026 04:49:45 -0800 (PST) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8; format=Flowed Date: Thu, 08 Jan 2026 13:49:44 +0100 Message-Id: Cc: "Andres Freund" , "PostgreSQL Hackers" , "Robert Haas" , "Daniel Gustafsson" , "Tom Lane" , "Peter Eisentraut" , "Nazir Bilal Yavuz" Subject: Re: RFC: adding pytest as a supported test framework To: "Jacob Champion" From: "Jelte Fennema-Nio" X-Mailer: aerc 0.20.1-31-gf6db7c329ce0 References: <2302192.1718380169@sss.pgh.pa.us> In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed Jan 7, 2026 at 2:01 AM CET, Jacob Champion wrote: > It's perfectly okay if you'd like to tie the GoAway proposal to this, > but that seems like it's unlikely to result in short-term success.=20 To be clear, I did not mean to tie the GoAway proposal to this. I meant to tie committing of *automated tests* for GoAway to this. Given how little of our libpq interface is tested, I don't think that needs to be a blocker for the GoAway feature itself. Timing wise, I'd myself much rather have this patchset as an early PG20 commit than a last minute PG19 one. > Writing code to start and stop a server and run SQL is a matter of > programming. Writing a test suite that newcomers can intuitively use, > and test interesting new things with, is a long-term collaboration. I > am much more interested in doing the latter, because we already have > the former, and personally I'm happy to build momentum slowly and wait > on a group of people who are in a good place to discuss it. Sure, it's a matter of programming. But my feeling is that most people on the list don't want to build their own test infrastructure. They want good infrastructure to "just exist", so they can write tests easily with it. So that's why after trying to use your initial attempt for a test of mine, I moved the useful parts to a shared part of the codebase. So that people can easily try writing a test with it, and explain what they like or don't like. Instead of having to create or copy a bunch of boilerplate every time they want to do something. In any case, that's where we're at now. It would be nice if you could take a look at the actual patchset at some point, but no rush.