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.94.2) (envelope-from ) id 1tH2yt-002oKJ-D4 for pgsql-hackers@arkaria.postgresql.org; Fri, 29 Nov 2024 15:32:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tH2yq-008bBC-T5 for pgsql-hackers@arkaria.postgresql.org; Fri, 29 Nov 2024 15:32:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tH2yp-008bB2-WC for pgsql-hackers@lists.postgresql.org; Fri, 29 Nov 2024 15:32:29 +0000 Received: from relay9-d.mail.gandi.net ([217.70.183.199]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tH2yn-000AaT-N8 for pgsql-hackers@postgresql.org; Fri, 29 Nov 2024 15:32:28 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 33FE5FF803; Fri, 29 Nov 2024 15:32:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vondra.me; s=gm1; t=1732894344; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7pEGR+4xkMjuxbwWsubZCkZRjfRu1W3JequP7udQwJ8=; b=fsWklPlfvjOZ5/oEo7uNfx7g7gVA+aqY7KLwUPhnfl1SUoIKyI9Uu+YFCoOIdO5UKqgO/A Wdf0byywNzWuZkmsXyDl+CDqPnDJu+nDdIXjfuvljbB89HApfWO2cZPKgCMgUkwuOmbqWk cZcaW3KTY58it0BkvLzCdDemEfAdNJDjXc2dQB62crEoM0Ow++6TR7+pxhMMNZRXVQIOcZ AsHtKlqAcYwRcwQUAfGD9RSvjroSSz1anq0qzPkGSEB7YQhIuz08/X/EIxacLMWT4kGtHB vuVYPYALysMCA7qotTK0UEV4Q2Vi5FBLAyyV/feX5RXUCG6Kk3reffxjvza4ug== Message-ID: Date: Fri, 29 Nov 2024 16:32:22 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Guidance Needed for Testing PostgreSQL Patch (CF-5044) To: postgresql_contributors , "pgsql-hackers@postgresql.org" Cc: Kiran Suresh Kulkarni , Hari Prasad B References: Content-Language: en-US From: Tomas Vondra In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-GND-Sasl: tomas@vondra.me List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 11/29/24 12:04, postgresql_contributors wrote: > Hi, > I recently installed and tested the CF-5044 patch using the query > provided on the PostgreSQL community page but could not confirm its > functionality. I followed the standard process: > > 1. Applied the patch usingĀ  |git|. > 2. Rebuilt PostgreSQL from source (|./configure|, |make|, |make install|). > 3. Tested with the suggested query after restarting PostgreSQL. > > I would appreciate your guidance on verifying patch functionality and > ensuring compliance with community testing standards. If there are > additional steps or tools I should use, please let me know. > Thank you for your support as I represent Newt Global in contributing to > the PostgreSQL community. It's not clear to me if you're asking about how to test a particular patch (I suppose by CF 5044 you mean [1]?), or testing in general. I don't know what you mean by "suggested query" and why you feel you could not confirm the functionality of the patch. Can you elaborate? FWIW the queries mentioned in the e-mail thread are usually included as a demonstration of what the patch is meant to do, not as a definitive proof that the patch is working. Likewise, it's not enough to just run the tests included in the patch - we have automated tools to do that. Testing a patch usually requires inventing new tests, thinking about cases the author might not have considered, etc. There's no "standard" to do that, it's often a surprisingly creative task, and it depends on what the patch is meant to do. Maybe start by asking questions about the patch: - Does the patch address a real problem? Is it useful? - Does it reliably do what it's supposed to do? Maybe there are false positives/negatives the author did not consider? - Could it have some unintended consequences? - Is is properly testing the change? Maybe it's missing some tests? - ... and so on ... Yes, it's going to be very specific to a given patch. I don't think there's a great "howto" for any patch :-( Does this answer your question? [1] https://commitfest.postgresql.org/50/5044/ -- Tomas Vondra