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 1qpbJh-006Iqd-6A for pgsql-hackers@arkaria.postgresql.org; Sun, 08 Oct 2023 21:28:01 +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 1qpbIf-008lmX-Kd for pgsql-hackers@arkaria.postgresql.org; Sun, 08 Oct 2023 21:26:58 +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 1qpbIf-008lmP-AW for pgsql-hackers@lists.postgresql.org; Sun, 08 Oct 2023 21:26:58 +0000 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qpbId-000yj5-ET for pgsql-hackers@lists.postgresql.org; Sun, 08 Oct 2023 21:26:57 +0000 Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-50435a9f800so5034588e87.2 for ; Sun, 08 Oct 2023 14:26:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696800414; x=1697405214; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=LIPC8H9Jm6jIuHE8XT+iHEPHTEGFjZ7RAgzbgylEFBg=; b=NKbnbi/3xCMECELmTWm7zmKjpG1FDXWFIe+rj5dSHaDqq0wIQnR4nCf2s7lvYzgeJt GOm7Bcz6U2JSIdDmtmQFZOePn2u9ExsEN7IxJz7QAJbpwugT3CVpa4VxCclfeHl5/t7q y+PqKMN755KHCYxOcWlB+frVfPSr1anFIa3DsAR3OUZSuqSofg8fKO5jv5LCy397y9PV xca0lR8X7ZEyTHmtDfLD8+yqzlF3EpVPm5wSWDYR48KnQq3jti1CFmkN6IZr88YBJFN3 axFnrVpLcBG1TRtTaQ/ao5ZWIWG0f/uCVPuHxC+6QJsQzk9NqwB7cd/sKwVM+elNUyLh 1jFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696800414; x=1697405214; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LIPC8H9Jm6jIuHE8XT+iHEPHTEGFjZ7RAgzbgylEFBg=; b=kE4ii+7LidKBUQqEI/Yzrl/GFxeu2U6hJ9kdaDEw8XszHKjk3Ka4cUJKnHF8eErYM6 jexJah9cHzc6QCD36bN2qPcG1I6Vf1D021+I+0uJijFMq2s5KN9cZ6v/HGm/fF6WL/FD xByfYfBwSMvIL/HnuIUver5Sx90bsSaUiWPG64At446EN6HVvbBjLLZtMLAxShQiCjKU 15grfdR9yWrcirBZicWKVQLwDgEnwh6DhIQ2jK0fC1stsJM2AFcP1vkbA0rzqagi0Mi4 obX5Nqw+gqgRPRYypDdyy/HFtDXEPZNU3uj8H5Yb0cMxZZFzEsOt8wFCKpTbUcF+ziPv wfGQ== X-Gm-Message-State: AOJu0YwXTYg+xjN/x4wOvngazQm4BLiKZJMA7Z8/TrVelmpMVT13yvY8 I3NgK5vVkzur8aL/AWm8wW+BjeeFGuZ79gVG90wAB6pP X-Google-Smtp-Source: AGHT+IHsSWWQh5OUA7z2NOcKqM+09mB6uWOp3cjP3A5LdDVcmtzF+Zvbfn9jB3GpO5LCtq1PCeijNj6G8MvXBU+rNTM= X-Received: by 2002:a05:6512:1327:b0:4f9:586b:dba1 with SMTP id x39-20020a056512132700b004f9586bdba1mr12089397lfu.4.1696800413584; Sun, 08 Oct 2023 14:26:53 -0700 (PDT) MIME-Version: 1.0 References: <1104459.1695938385@sss.pgh.pa.us> In-Reply-To: From: David Rowley Date: Mon, 9 Oct 2023 10:26:38 +1300 Message-ID: Subject: Re: Does anyone ever use OPTIMIZER_DEBUG? To: Tom Lane Cc: PostgreSQL Developers Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, 3 Oct 2023 at 12:29, David Rowley wrote: > > On Fri, 29 Sept 2023 at 10:59, Tom Lane wrote: > > We could also discuss keeping the "tracing" aspect of it, but > > replacing debug_print_rel with pprint(rel), which'd still allow > > removal of all the "DEBUG SUPPORT" stuff at the bottom of allpaths.c. > > That's pretty much all of the maintenance-requiring stuff in it. > > To assist discussion, I've attached a patch for that. It looks like nobody is objecting to this. I understand that not everyone who might object will have read this email thread, so what I propose to do here is move along and just commit the patch to swap out debug_print_rel and use pprint instead. If that's done now then there are around 10 months where we could realistically revert this again if someone were to come forward with an objection. Sound ok? David