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 1w9ln1-001jL0-0z for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Apr 2026 15:22:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w9lmz-009mQ0-2U for pgsql-hackers@arkaria.postgresql.org; Mon, 06 Apr 2026 15:22:58 +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 1w9lmz-009mPs-1a for pgsql-hackers@lists.postgresql.org; Mon, 06 Apr 2026 15:22:57 +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.98.2) (envelope-from ) id 1w9lmy-00000000s9U-0EdM for pgsql-hackers@lists.postgresql.org; Mon, 06 Apr 2026 15:22:57 +0000 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-66bd4e0560fso6787459a12.0 for ; Mon, 06 Apr 2026 08:22:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1775488975; cv=none; d=google.com; s=arc-20240605; b=YUpgtfpaz+g4ooh27+pAiA/jBdkaCwie4W9P/LCH6EpclDfpD+tL1m/p6GV6aLSg6E TmVfrzT4uRQVbHEiFHyN3DpB++Up7ichJed0teEp8fyuJQ73v8kXyELhbomf+bMppThj 1UNSR48AmGX8bTecAG3LUnqAKt5aANEHCj/RiDyzkRUVhppb96txBAquXHPPEmeQwkHM t5nGbSNwrumJDFjpWXAbJIFlCzO84kDa22Q8tDWkbzGpngMtg6S7cQGfvh5LdtCR/GgM kp3l/HE3l6LAEifF886eBiAM+penQUvJ5sVwVyqaLPiKRebEBedjIEec0/IKUBlw3ONA EgkQ== 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=md1j0C5pPpnc+9h/9CoES7gf5lBacryvasBQR9FOsqc=; fh=5ybtuJc6POXdT9H+GN/poF6OkvFDiv4zM6Tb16eEWOA=; b=A86vKwF7I8Z8gM8IS6YfnvgbWwaFWPW+dSnXRYSVZvopG1bs83iBCPxrxgIXbThImV NDXiMe8w/mD/iQd1HZytYYK4LCs74mTkaa76RrDpDFZ4epFjHX/pBglxqmvTYkXPrNSt uvqjwyWge8LnQa7tpmCRG62tm5ljy8gEDollut5IE6DXftGMvqIiZVBvXRNIk/c3rWyZ scMSPaSJYSPlRitw3/h//8MHaWN61LD55r+JMaJI4pJU5MgBeIMPyCsxoFJdbVnYJNdC Zx/ZkmuxlXr7YaBiazuRPEp3xgPB5VQti4wRY7Eg+DLNzh3kjSas2L7reAjUOhPfCPzD K3/Q==; 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=1775488975; x=1776093775; 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=md1j0C5pPpnc+9h/9CoES7gf5lBacryvasBQR9FOsqc=; b=LduI8NW8kqSxQODBnzdiR22vZhlPQMJORvdYNViVoxSPTkJJ6BKopo2KV8MQzHlXND YeAQoHZYKv0EiCNpzNXNtFEHyh7RUHQkJJywAwp3wRRCVK1LpoIVj3J9WAJOmU50GYx2 +8V7EY7937DN2zH+IWBIHSS0grC9CanE/cIuK7Rst3tJSy7KrnbpP5vEEYKuP1CVgCww 3jO9gEKyzOjwIA26aAqIEMyP+eL4HP0E9EfgemXsIw5B9graarh8ln3uaGaMnpnaBJP2 /stXT56cikD03Uu0tthGIXYC3j6bNnS9JO3e33hq2C1MPffb/HQVtcxgw5f7zHZOHBuY ijpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775488975; x=1776093775; 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=md1j0C5pPpnc+9h/9CoES7gf5lBacryvasBQR9FOsqc=; b=SERl7suvOZQdb3Pd8RZO8Jn3mc8aj5xfhwC49OWwXc3Kw9O9r89yYMWjJA23huV3lX e/s9k/j6BPcoulcvrtCKgZpY52IvUY2FPoLIJAQoYO69ZeMD2sA4Dm0neMfGlgqtUVUr DNCy0Smb1jmaBKtq+GdYCczqIIUk8MeKW6KLZ+D9+DiKcgY85tg0a6lE6013NsSWHQEA ZP/L5FDnVXlTcRg5GILhBb7ZRlu4J1TKvGxaCx3TMeA1byWj/7rl1NFj8nqJ/kW9jh9r uNVpBa+aQRIr66VFFzaBiKZ6FdpAq41TcL4BHad2L1UiGMwwMSqsieoRB9BaDAfSGQgp /JWQ== X-Forwarded-Encrypted: i=1; AJvYcCXRGQRDyhN2Pdec4bdTzeVR5Jm8rEd7lBIW9aEm2wWwryTl8IWlaD6NA7bWOfl5tabAiy5Oggs/aS47lxV3@lists.postgresql.org X-Gm-Message-State: AOJu0YxdWMF4M+CPuk5jlA+W4CUl4xs6raOG/85AW4+PzlSNVb9SWjxh AnEhGHxetFhOC+oUmiaomoO13kE7GsS2B0maXpDFXp85zthKlx3bjoen4tegBauCek37ypJXSMW RLik65o4Ld99mESmtr0OfotGuAw05uOU= X-Gm-Gg: AeBDietlj1IRWdLwHs4o+rN08CErQ1nzqgwPKF68XpxOGyiy7jCBWywG0gez1MnzFW7 3zpV2xLxjv2BbOBmzJFr16j4dhDfnL8ydcbKJM5ZdjjYu18AQx+o71LMaab8JbhvEQikebIJJpF Mq1S1+zrW7AwK8IlZgEhzNWK5HUXqLWIfZ9CLZ6tNOQpbrGkrBrZ8aRzWCqtFlCYgt4dQoiOGWm VQgmgrqZ5U+CV15RhCdksUEe4axDPBRyI45NsyEqv7k30iTyGShfhOBXBXcjg0ljJdyCQWnslyc DlQiJVh+DAD4q2RP98sDTiOg6lqFwcOceCF9u7A= X-Received: by 2002:a17:907:96ac:b0:b9c:617b:4a36 with SMTP id a640c23a62f3a-b9c617b4cf3mr565433366b.21.1775488974486; Mon, 06 Apr 2026 08:22:54 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Robert Haas Date: Mon, 6 Apr 2026 11:22:42 -0400 X-Gm-Features: AQROBzDOATt6psCiTZxrXHs4i0YFuKX3An3-BWP75zCHfhC3at3hyvlh8X_V71o Message-ID: Subject: Re: Add custom EXPLAIN options support to auto_explain To: Lukas Fittl Cc: Matheus Alcantara , pgsql-hackers@lists.postgresql.org, Tom Lane 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 Fri, Apr 3, 2026 at 10:09=E2=80=AFPM Lukas Fittl wrote= : > Maybe make it clear in the comment that the return value is > unterminated (e.g. "The return value is the unterminated identifier"), > i.e. caller is responsible for setting the null byte based on endp. > > Otherwise 0001 looks good. Thanks for the review, but I don't agree with that proposed change. To me, it seems too much like insisting that a function must document the things it doesn't do. Granted, saying "this function doesn't overwrite *endp" is a much more reasonable thing to document than "this function doesn't try to compute pi to 3,141,593 decimal places," because the latter is less likely to be something that the user would expect it to do. But I feel like the comment is clear enough as it is, so I've committed the patch without change. If more votes in favor of adjusting the comment emerge, we can certainly reconsider. --=20 Robert Haas EDB: http://www.enterprisedb.com