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 1w5lq0-003bvD-30 for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Mar 2026 14:37:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w5lpz-0039RR-1P for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Mar 2026 14:37:31 +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.96) (envelope-from ) id 1w5lpz-0039RI-0T for pgsql-hackers@lists.postgresql.org; Thu, 26 Mar 2026 14:37:31 +0000 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w5lpw-00000001Idm-3IQw for pgsql-hackers@lists.postgresql.org; Thu, 26 Mar 2026 14:37:31 +0000 Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-661b16ac011so1864834a12.2 for ; Thu, 26 Mar 2026 07:37:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774535848; cv=none; d=google.com; s=arc-20240605; b=EiujylJQRRmoIKDfxZoPwuDp9wCmKw+Jdc4wFwLYqJbEqJeW7VNF3fYagQTrpXjmIi WFjzRTEmYoJ3Qp+9WlRodY/6aETKi5lrub7fvs8QkfDEtK6fSLs4i7jWBbot3uurbFNt TZXlcLTJh1QvYIScpYTV4E2JhLVPuE6uMpqOZc8kks70ptaVKNJVEWUvsO3ePUKju62E gCzePwDGwDbBPqLMZcf+qUz+eLik52AxNDi3mB18t4YR+JIsYKEK/ZCmBacVEi1NsxWp jL77XYfuM4duo5X+ZJbVFKhd+SUEUNMTMu8Z7H/PjTrKmv9La+iDRU8PWVqWr75/jUYC Ymgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=YOKnfukIv9mkGSWx4i2A61VKjrRkKMf9i3i7ehDCR6o=; fh=CQloHfiwsoYpOY7u1QZs88a6JJ+iu63qtTxfQQMJpvk=; b=NjfmiLFSur3GQNW4CwhdkjGAAjMsxm7ZXyhZ0Xqgj7GbTw3DawcUpK3SYhCxC+bYC3 gMJRhOFiUryMG6K7XhKKf/gL/W1Md+iRiTQvSvGMnHPL4t76YP/sz4gce+4BLzL2udej FVCVSSV8yUHTmF1TWb4JPB9saptEWXp/tYKTn8u0ojsNrti2jI9Flfgj7LMJB4Xov9sV Bk4JcscnSc5Dr+xdxNeGe3tqMXqFw6oox+JgO793WnL+u3sePrV6rt2wikv01hEh1gRo vk2dd0/GkkVDgc+Hmq8RzXX4nRvmmaUxnRsdFCuYy9dU98JksipU3QYR86NagISUEcxS xC/g==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774535848; x=1775140648; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=YOKnfukIv9mkGSWx4i2A61VKjrRkKMf9i3i7ehDCR6o=; b=qQ/OdL7/axMqoYVrVcB63dLn8fCMxoDXv5PNNBpjwEXe51fEPOrdmxqG+P3UlY2X+x cglfX3EfMQIB3hDM6CRRIyBIPc4MMILLS+9xpiWLZqbarlS7ube7luG6fXBIbvr4rZcb zrct8NUtDIQkX5orZBBeN8KIpzgbfzqi5gZ7ppzt5igMuDe7CKFXcadB35FFKV1munkb MrCMcQ7oAhUQe2fGjOw2Apax2EIEIfKFHuhDV1DJTdj84gJlk07eifHLMC7hyynuJf8z TzzWbk677aB/EWUigEzImrgdqF8ONgccZ4DVUhTPsiAnwCqJhiTB7v4bwDx0fNt5Hjmz izIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774535848; x=1775140648; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=YOKnfukIv9mkGSWx4i2A61VKjrRkKMf9i3i7ehDCR6o=; b=MFQDyhFagwmUDyN73DJx/1MkgFdhJWP09xNZEupqXNV7a8OjXjKYVvQBExpTTtmUiN 8/VLyV3KaqPFSmF0yhTdPIB1PTulWm7rAV/tFn6JiJSNjmuGRBgQwW3xPGJO3Q1FW8Hc 8R4S87WcuJCXP0NVAvJ/U33xmrGn/0ynhySzJCrG7qkMRnbRIygLPb0NuZQ1XhRXOFdV /nmr+T0J0IEr8z4z9XNZi4W0W8EyP7a7wcv4Br2DUpMjkWNIHhsvKFGwBO9D5IY23Ix2 LqYposRpOtlkClNtYU8rMhBUCfiMDIm6H20dMhw8YzpfE/6DKs5qjYVqYplXtBslLTaJ zAnw== X-Forwarded-Encrypted: i=1; AJvYcCWnuJkoRMzTWq5IAIfVtPFcC1P98jt6wfKxT+gRShJacOV3pOwOyRV3oa3VlxrxrHkrLa8jApkpbD28bWTn@lists.postgresql.org X-Gm-Message-State: AOJu0Yzo/oOJhqZZBOcadsGDMS4NBklGqh7VYSPwrPFj5ndtfwZ8tVCt 7us4Zgxtdx7/BHosnupK5Zp2EA3gAHh9sMXZO0FcRnOhuHJ3CWMh0rWPS3kabHpf82PmlBWgInz jlQ0KWhTu7TRtYxBKMWUOocC+BwaI/Do= X-Gm-Gg: ATEYQzzcjCKfKKyDAPpjAQqqxOBcn668vLmBos5fnaR3Wx3uPiR8l5Mz06Yil1yT1cr XraUlWKTz0aIbNiTQEFqvUNiLRzOfCxOQRszKAsgrh9ACl2XJDsIMDm51sT6uEAS1SzJPSNFc3Q sxLgaNBYfX7G8P1tOMQ6rtafr44s5vN3yb5TsC5LlVqpOsxqtn9j+QkLhbeHU3uXhyxHf1L4g5X My0AxUK6jRfzQnYz8YMJ0bDhmhm80d18X3VbadZjC+3ca4vB3+tc9L0WlyxZdVWfsT0hxyrnhS8 1AJF8MhqGA0vLIsvxqZJZA4V/1kFVKxPY9pIQcI= X-Received: by 2002:a17:907:9690:b0:b98:3e1d:b133 with SMTP id a640c23a62f3a-b9a542908d2mr514227266b.44.1774535847414; Thu, 26 Mar 2026 07:37:27 -0700 (PDT) MIME-Version: 1.0 References: <1299934.1773938807@sss.pgh.pa.us> <7f75a4ed-f91b-4a9b-a496-4ea89f54e1de@gmail.com> In-Reply-To: <7f75a4ed-f91b-4a9b-a496-4ea89f54e1de@gmail.com> From: Robert Haas Date: Thu, 26 Mar 2026 10:37:15 -0400 X-Gm-Features: AQROBzDCNd4yQ-aK4i4jHVMrF8IL5USdDOEYP5a5fNSI5xT4l2OwhT8_O69RHOE Message-ID: Subject: Re: pg_plan_advice To: Matheus Alcantara Cc: Lukas Fittl , Tom Lane , PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Mar 26, 2026 at 10:30=E2=80=AFAM Matheus Alcantara wrote: > Adding support for auto_explain to explain(plan_advice, ...) (or any > other custom explain option from loadable modules) would help or make > sense here? I have been thinking about this for a while. I think that some generic support for custom explain options in auto_explain is a good idea, but if you use that method to collect advice strings, you're going to have quite a bit of log-filtering work to do to get anything useful out of it. That might be fine for some people, and it's certainly better than nothing, but I think eventually we want a cleaner way. But still, +many for upgrading auto_explain with this feature. --=20 Robert Haas EDB: http://www.enterprisedb.com