pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrei Lepikhov <lepihov@gmail.com>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Sami Imseih <samimseih@gmail.com>
Cc: Jeff Davis <pgsql@j-davis.com>
Cc: Thom Brown <thom@linux.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Subject: Re: making EXPLAIN extensible
Date: Thu, 22 May 2025 16:28:58 +0200
Message-ID: <55087f39-c7d5-4d26-80ff-51868e998985@gmail.com> (raw)
In-Reply-To: <CA+Tgmob_cLoLdTnydXFNuR5ns_WWMDQSk5-ZM9kdoL6=+BXpQA@mail.gmail.com>
References: <CA+TgmoYSzg58hPuBmei46o8D3SKX+SZoO4K_aGQGwiRzvRApLg@mail.gmail.com>
	<2c9376aa-9c66-4662-9803-3d9bc2afead1@gmail.com>
	<8e8b6f17-e1e6-4b16-84d4-37ded802c787@gmail.com>
	<CA+TgmoaTkMna7OMqP-bJ+70sVvhmc2pHZ8xa1dU6NVAWE=7Qrg@mail.gmail.com>
	<CAA5RZ0sKhLRqce2+tvfuzBzm=HWQCe5TdPcbj7Vse+jQE=pyVA@mail.gmail.com>
	<CA+TgmoYcAfrOX8m05vVeh9QXUWO5SUA-uRo67DOK2tmZOnVXqg@mail.gmail.com>
	<CAA5RZ0uYFERQO9XYx9Rc+bVO5WStRSOvK1Bw16qXTNxnCp8xEw@mail.gmail.com>
	<1584338.1742582225@sss.pgh.pa.us>
	<CA+TgmoZfvQUBWQ2P8iO30jywhfEAKyNzMZSR+uc2xr9PZBw6eQ@mail.gmail.com>
	<41ca9655-f905-4eec-96b3-8a3fef350548@gmail.com>
	<CA+Tgmoa5fFZY3S-cY5PHAo=msGgkmP4bZchHZKQDke_h605ZpQ@mail.gmail.com>
	<CA+TgmoY01MHtibbE=84tHmJLNgcBuvhH19JDd5PF8hrJG8mLbQ@mail.gmail.com>
	<41a344e3-ffb1-4296-8ba7-801f1e9642e5@gmail.com>
	<CA+TgmobefDLOWkUdD15YY-XpeAJfSTynPX=tSc=NFTe+r_gNug@mail.gmail.com>
	<25642340-0f04-4a19-a332-e6567dd436f6@gmail.com>
	<CA+Tgmob_cLoLdTnydXFNuR5ns_WWMDQSk5-ZM9kdoL6=+BXpQA@mail.gmail.com>

On 22/5/2025 16:17, Robert Haas wrote:
> On Sat, May 3, 2025 at 2:44 PM Andrei Lepikhov <lepihov@gmail.com> 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





view thread (88+ messages)  latest in thread

Message-ID: <55087f39-c7d5-4d26-80ff-51868e998985@gmail.com>
Permalink:  ../55087f39-c7d5-4d26-80ff-51868e998985@gmail.com/
Also on:    postgresql.org/message-id/55087f39-c7d5-4d26-80ff-51868e998985@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: lepihov@gmail.com, robertmhaas@gmail.com, samimseih@gmail.com, pgsql@j-davis.com, thom@linux.com, tgl@sss.pgh.pa.us
  Subject: Re: making EXPLAIN extensible
  In-Reply-To: <55087f39-c7d5-4d26-80ff-51868e998985@gmail.com>
  References: <CA+TgmoYSzg58hPuBmei46o8D3SKX+SZoO4K_aGQGwiRzvRApLg@mail.gmail.com> <8e8b6f17-e1e6-4b16-84d4-37ded802c787@gmail.com> <CA+TgmoaTkMna7OMqP-bJ+70sVvhmc2pHZ8xa1dU6NVAWE=7Qrg@mail.gmail.com> <CAA5RZ0sKhLRqce2+tvfuzBzm=HWQCe5TdPcbj7Vse+jQE=pyVA@mail.gmail.com> <CA+TgmoYcAfrOX8m05vVeh9QXUWO5SUA-uRo67DOK2tmZOnVXqg@mail.gmail.com> <CAA5RZ0uYFERQO9XYx9Rc+bVO5WStRSOvK1Bw16qXTNxnCp8xEw@mail.gmail.com> <1584338.1742582225@sss.pgh.pa.us> <CA+TgmoZfvQUBWQ2P8iO30jywhfEAKyNzMZSR+uc2xr9PZBw6eQ@mail.gmail.com> <41ca9655-f905-4eec-96b3-8a3fef350548@gmail.com> <CA+Tgmoa5fFZY3S-cY5PHAo=msGgkmP4bZchHZKQDke_h605ZpQ@mail.gmail.com> <CA+TgmoY01MHtibbE=84tHmJLNgcBuvhH19JDd5PF8hrJG8mLbQ@mail.gmail.com> <41a344e3-ffb1-4296-8ba7-801f1e9642e5@gmail.com> <CA+TgmobefDLOWkUdD15YY-XpeAJfSTynPX=tSc=NFTe+r_gNug@mail.gmail.com> <25642340-0f04-4a19-a332-e6567dd436f6@gmail.com> <CA+Tgmob_cLoLdTnydXFNuR5ns_WWMDQSk5-ZM9kdoL6=+BXpQA@mail.gmail.com> <55087f39-c7d5-4d26-80ff-51868e998985@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox