Re: Bug in CREATE TABLE .. LIKE .. INCLUDING STATISTICS?

Srinath Reddy Sadipiralla <srinath2133@gmail.com>

From: Srinath Reddy Sadipiralla <srinath2133@gmail.com>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: Julien Tachoires <julien@tachoires.me>, dgrowleyml@gmail.com, pgsql-bugs@lists.postgresql.org
Date: 2026-04-21T15:56:49Z
Lists: pgsql-bugs
Hi Andrew,

On Tue, Apr 21, 2026 at 8:49 PM Andrew Dunstan <andrew@dunslane.net> wrote:

>
> OK, here's a version that does that in a combined patch, and adjusts the
> function comments to mention we also remap the stxkeys. Releases before 18
> will need a little adjustment in the test files.
>

Thanks for the patch , it LGTM.

-- 
Thanks,
Srinath Reddy Sadipiralla
EDB: https://www.enterprisedb.com/

Commits

  1. Fix attnum remapping in generateClonedExtStatsStmt()