Re: code cleanup for CREATE STATISTICS - Mailing list pgsql-hackers

From jian he
Subject Re: code cleanup for CREATE STATISTICS
Date
Msg-id CACJufxG2WWXayNdtc88VZgqVbd6+z=HXKX=WxMw2+uJUQUHT4w@mail.gmail.com
Whole thread Raw
In response to code cleanup for CREATE STATISTICS  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On Wed, May 3, 2023 at 1:50 AM Robert Haas <robertmhaas@gmail.com> wrote:
>
> Hi,
>
> So the attached patch is proposed as code cleanup, rather than
> security patches. It changes the code to avoid the duplicate name
> lookup altogether. There is no reason that I know of why this needs to
> be back-patched for correctness, but I think it's worth putting into
> master to make the code nicer and avoid doing things that in some
> circumstances can be risky.
>

hi.

while working on
https://commitfest.postgresql.org/patch/6106

Somehow, I accidentally found this thread by searching on gmail (web).
I copied most of your patch (more than 50%) and posted it on that thread....


--
jian
https://www.enterprisedb.com/



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Rename sync_error_count to tbl_sync_error_count in subscription statistics
Next
From: jian he
Date:
Subject: Re: misleading error message in ProcessUtilitySlow T_CreateStatsStmt