Re: Improving the names generated for indexes on expressions - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Improving the names generated for indexes on expressions
Date
Msg-id CA+TgmobxmQWEfPWBjfjco0dwzGvJ==tFKU01KefZnQrcQM0ujA@mail.gmail.com
Whole thread Raw
In response to Re: Improving the names generated for indexes on expressions  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: Improving the names generated for indexes on expressions
Re: Improving the names generated for indexes on expressions
List pgsql-hackers
On Tue, Sep 16, 2025 at 12:56 AM David G. Johnston
<david.g.johnston@gmail.com> wrote:
> If there are no function names present, output “expr” in lieu of a function name.  Then just output any columns that
arepresent.  No operators, no constants. 

In the previous discussion, the user's expression indexes were on
these expressions:

jsondata -> 'a' -> 'b'
jsondata -> 'x' -> 'y'

So "no operators, no constants" wouldn't really allow us to make any
useful progress, inasmuch as it would throw away everything that
matters.

I am not really sure we want to do what Tom proposes here because, as
Pavel says, it would result in a lot of indexes containing special
characters in the name. But I do want us to try to find some way of
giving indexes on different expressions different names.

--
Robert Haas
EDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Shlok Kyal
Date:
Subject: Re: Logical Replication of sequences
Next
From: Ashutosh Sharma
Date:
Subject: Re: Improve pg_sync_replication_slots() to wait for primary to advance