Re: Statistics Import and Export

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: Alexander Lakhin <exclusion(at)gmail(dot)com>, Corey Huinker <corey(dot)huinker(at)gmail(dot)com>, jian he <jian(dot)universality(at)gmail(dot)com>
Cc: Matthias van de Meent <boekewurm+postgres(at)gmail(dot)com>, Bruce Momjian <bruce(at)momjian(dot)us>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Nathan Bossart <nathandbossart(at)gmail(dot)com>, Magnus Hagander <magnus(at)hagander(dot)net>, Stephen Frost <sfrost(at)snowman(dot)net>, Ashutosh Bapat <ashutosh(dot)bapat(dot)oss(at)gmail(dot)com>, Peter Smith <smithpb2250(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, alvherre(at)alvh(dot)no-ip(dot)org
Subject: Re: Statistics Import and Export
Date: 2024-10-29 01:55:00
Message-ID: 102142929482204bf16147338cb89dfed25bd632.camel@j-davis.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, 2024-10-27 at 14:00 +0300, Alexander Lakhin wrote:
> Please look at the following seemingly atypical behavior of the new
> functions:

...

> SELECT pg_restore_attribute_stats(
>    'relation', 'test'::regclass,
>    'attname', 'id'::name,
>    'inherited', false
> ) FROM generate_series(1, 2);
> ERROR:  XX000: tuple already updated by self

Thank you for the report!

Attached a patch to add calls to CommandCounterIncrement().

Regards,
Jeff Davis

Attachment Content-Type Size
0001-Add-missing-CommandCounterIncrement-in-stats-import-.patch text/x-patch 2.0 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Smith 2024-10-29 02:14:17 Re: Pgoutput not capturing the generated columns
Previous Message David G. Johnston 2024-10-29 01:40:50 Re: EXPLAIN IndexOnlyScan shows disabled when enable_indexonlyscan=on