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 1uI6uv-00FvjH-4s for pgsql-hackers@arkaria.postgresql.org; Thu, 22 May 2025 14:29:05 +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 1uI6uu-003J2J-11 for pgsql-hackers@arkaria.postgresql.org; Thu, 22 May 2025 14:29:03 +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 1uI6ut-003J22-No for pgsql-hackers@lists.postgresql.org; Thu, 22 May 2025 14:29:03 +0000 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uI6uq-000M4V-2N for pgsql-hackers@lists.postgresql.org; Thu, 22 May 2025 14:29:03 +0000 Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-327fcd87a3cso67736391fa.0 for ; Thu, 22 May 2025 07:29:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747924140; x=1748528940; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=X2dXW2ojIWOAwGxAV7WWB3TNC+84uVPGpUDtMs/VDUs=; b=JKNPDguCjdea7ckDflXEOaHShkl/omXG/Q84kyLP57qYUiYE0pcEM5ltPWBfhZoWRE nvydMvDI5EKY0r0RC27lv2UcZaornf/l5V0/Vvt3b30SQtVh4ZmPb/rwkH2lKM0sUG5R oE/0p0x6z8/jhrw0kDiZFH2N7hChS+GJkmADGWMTL1EgFmT8HMBkITCVMD4DHpcA87d6 otXjTP1JNmtQ/3DIhFhsVWTrx3PTPfTzuAYVAx8PKXCtUfQg72H0P/XhrX28I464y7Ur PHvLSggRUno3eHPzO2T6FJD7H3GxyfLip+McVstWoubIsGb/YBR3HUL4vMl6EJ3cfu/3 h8mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747924140; x=1748528940; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=X2dXW2ojIWOAwGxAV7WWB3TNC+84uVPGpUDtMs/VDUs=; b=gezck1plJDQaY9S0wwMUK6a6uAV1W7P9ZibV0GoNWmjqrFdwGOdL6FIzb5UWyQaFg9 MoGC/BOsY70WUXdRXmYsm0VI1BJBnixV70tkYJptexwoYEkOgKMZozr6lDPojlyGuH5d UOg8kmANh2IWy/Kax0OsRwSn69QLcbqrGMknvmHFltRZ+oTboPXVjkrriF3WGMug3f5P 1HBNdCUM4szpkX76puED6xcsBkGDwhpQA/dGrWRfuvyPrm9INpa+pd22uMdzCNPg/Swf YDruMKkNuAIAcO59VbT4cF6xOhfiajPbNjt4dXb1gEMHpItmefQpHICIlhkdwHcS5N8x VwUQ== X-Forwarded-Encrypted: i=1; AJvYcCXsqbKKoWO3sNYzrtWkB6WsPreQ/yoVYgtX3Gl1w5A6nim1NWoPnOGsBUxzNQBU0LTugWK42gGiYalptg33@lists.postgresql.org X-Gm-Message-State: AOJu0Yy+h7Nut/Ey1qLPbcHiWmMNo8g88QvW/2N3sBidaD5WhqR9dC4Z +SowITYuY9/EYpg7/eIn/EyAj5WwtOd5MdBaAMo7/xSGNP5lrhWwJq98 X-Gm-Gg: ASbGncuN84+mvoldoH8Q6g1lX/BI4VSCmCaKSgeKhAO5SUc92merjzUEzbM5FMDqtXc yAYTUB4/y/vYKA5apgNnNrxYHQFgZEfDZSllHW8bB9aHXYxxyZM7qF5RV6W208UC4bg2LrycJtw vYvW9oCJBEU2yOBwluK4t7MHr4xGW28ScUSGf+jgnU8v0NK+i7Z8Mu/ELYsfCCmQTa65yJSqKrN RMgZXifu4pIZnXqPps4pL/qq8hqAYSysCJ6EDbHOQC9ukjV0nzOfgNlaS3c/xKUztbTm4DLb2fo THwqFUORaZ8/LYu3HsU/nrKvmgA3591DE7/cOgL9LXy8BQezgyKdFN57IfsEt7M= X-Google-Smtp-Source: AGHT+IFHKgUlpLIts94e7ERHzOGJBb5W4aDPGlsi25CZkMZLCmpi9csjQIEXaQ32dwEcZCny7CC9GA== X-Received: by 2002:a2e:bcc1:0:b0:30c:189d:a169 with SMTP id 38308e7fff4ca-3280978054cmr110375101fa.25.1747924139866; Thu, 22 May 2025 07:28:59 -0700 (PDT) Received: from [192.168.15.111] ([80.251.191.198]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-328085b8f09sm32509481fa.87.2025.05.22.07.28.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 May 2025 07:28:59 -0700 (PDT) Message-ID: <55087f39-c7d5-4d26-80ff-51868e998985@gmail.com> Date: Thu, 22 May 2025 16:28:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: making EXPLAIN extensible To: Robert Haas Cc: Sami Imseih , Jeff Davis , Thom Brown , PostgreSQL Hackers , Tom Lane References: <2c9376aa-9c66-4662-9803-3d9bc2afead1@gmail.com> <8e8b6f17-e1e6-4b16-84d4-37ded802c787@gmail.com> <1584338.1742582225@sss.pgh.pa.us> <41ca9655-f905-4eec-96b3-8a3fef350548@gmail.com> <41a344e3-ffb1-4296-8ba7-801f1e9642e5@gmail.com> <25642340-0f04-4a19-a332-e6567dd436f6@gmail.com> Content-Language: en-US From: Andrei Lepikhov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 22/5/2025 16:17, Robert Haas wrote: > On Sat, May 3, 2025 at 2:44 PM Andrei Lepikhov wrote: >> I have one additional proposal. >> >> I currently use this interface and have noticed that the parameter >> `option_name` in the RegisterExtensionExplainOption routine is >> case-sensitive. Since SQL treats our extended options as >> case-insensitive, it would be beneficial to either add a comment >> clarifying this behavior or forcedly convert incoming text constant to >> lowercase. > > I don't think this is really true. It's just standard identifier > handling. You can have options with upper-case names if you quote > them. Sorry for my language. I meant that when you call function RegisterExtensionExplainOption(), it make sense if you write parameter `option_name` as "debug" or "deBug". On the user side case-insensitiveness works correctly, of course. Not sure about side effects if one extension will call this routine with "Debug" parameter and another one - "debuG". -- regards, Andrei Lepikhov