Re: BUG #18468: CREATE TABLE ... LIKE leaves orphaned column reference in extended statistics - Mailing list pgsql-bugs

From Tender Wang
Subject Re: BUG #18468: CREATE TABLE ... LIKE leaves orphaned column reference in extended statistics
Date
Msg-id CAHewXNkng5jG472hh+icVT_g8BT5Gv4tNFjBP_X5cK1aqiH=ag@mail.gmail.com
Whole thread Raw
In response to Re: BUG #18468: CREATE TABLE ... LIKE leaves orphaned column reference in extended statistics  (Tender Wang <tndrwang@gmail.com>)
Responses Re: BUG #18468: CREATE TABLE ... LIKE leaves orphaned column reference in extended statistics
List pgsql-bugs
generateClonedExtStatsStmt just copy t0's ext_stat info to t1.
I think we could do something in transformExtendedStatistics() as the comments said.
in transformCreateStmt, has below code:
/*
* Postprocess extended statistics.
*/
transformExtendedStatistics(&cxt);

Right now, there is nothing to do in transformExtendedStatistics. 
Can we update the varattno to the right value here?
--
Tender Wang
OpenPie:  https://en.openpie.com/

pgsql-bugs by date:

Previous
From: Bowen Shi
Date:
Subject: Re: relfrozenxid may disagree with row XIDs after 1ccc1e05ae
Next
From: Önder Kalacı
Date:
Subject: Re: BUG #18467: postgres_fdw (deparser) ignores LimitOption