Re: Query Jumbling for CALL and SET utility statements

From: "Drouvot, Bertrand" <bdrouvot(at)amazon(dot)com>
To: Julien Rouhaud <rjuju123(at)gmail(dot)com>, bt22kawamotok <bt22kawamotok(at)oss(dot)nttdata(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Query Jumbling for CALL and SET utility statements
Date: 2022-09-13 05:30:23
Message-ID: ee547cbd-eb0a-28ab-4e71-d3cc8cd77250@amazon.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On 9/13/22 6:33 AM, Julien Rouhaud wrote:
> Hi,
>
> On Tue, Sep 13, 2022 at 11:43:52AM +0900, bt22kawamotok wrote:
>> I found that utility statement is counted separately in upper and lower
>> case.
>> For example BEGIN and begin are counted separately.
>> Is it difficult to fix this problem?
> This is a known behavior, utility command aren't normalized (apart from the few
> that will be with this patch) and the queryid is just a hash of the provided
> query string.
>
> It seems unrelated to this patch though. While it can be a bit annoying, it's
> unlikely that the application will have thousands of way to ask for a new
> transaction (mixing case, adding a random number of spaces between BEGIN and
> TRANSACTION and so on), so in real life it won't cause any problem.

Agree that it seems unlikely to cause any problem (as compare to the
utility statements that are handled in this patch).

> Fixing it
> would require to fully jumble all utility statements, which would require a
> separate discussion.

Agree.

Regards,

--
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com

Amazon Web Services EMEA SARL, 38 avenue John F. Kennedy, L-1855 Luxembourg, R.C.S. Luxembourg B186284

Amazon Web Services EMEA SARL, succursale francaise, 31 Place des Corolles, Tour Carpe Diem, F-92400 Courbevoie, SIREN 831 001 334, RCS Nanterre, APE 6311Z, TVA FR30831001334

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Marina Polyakova 2022-09-13 05:34:16 Re: ICU for global collation
Previous Message Shinya Kato 2022-09-13 04:56:44 Re: [PATCH]Feature improvement for MERGE tab completion