Re: analyze-in-stages post upgrade questions

From: Mircea Cadariu <cadariu(dot)mircea(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Cc: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
Subject: Re: analyze-in-stages post upgrade questions
Date: 2025-07-07 12:43:11
Message-ID: 175189219162.2200286.3306593311375985296.pgcf@coridan.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

The following review has been posted through the commitfest application:
make installcheck-world: tested, passed
Implements feature: tested, passed
Spec compliant: tested, passed
Documentation: tested, passed

Hi Laurenz,

Nice focused patch.

Applied successfully on commit 62a17a92 from master.

Documentation is updated and there is an explanatory comment for the code, as well as a descriptive commit message.

To check the patch, I added the following test at the end of src/bin/scripts/t/100_vacuumdb.pl in both master (as experiment) and your patch. In master it does not pass, but with your patch applied it does.

You can consider adding it to your patch, or I could also do that.

$node->safe_psql('postgres',
"CREATE TABLE parent_table (a INT) PARTITION BY LIST (a);\n"
. "CREATE TABLE child_table PARTITION OF parent_table FOR VALUES IN (1);\n"
. "INSERT INTO parent_table VALUES (1);\n");
$node->issues_sql_like(
[
'vacuumdb', '--analyze-only', 'postgres'
],
qr/statement:\s+ANALYZE\s+public\.parent_table/s,
'--analyze_only updates statistics for partitioned tables');

Kind regards,
Mircea Cadariu

The new status of this patch is: Waiting on Author

In response to

Browse pgsql-general by date

  From Date Subject
Next Message abrahim abrahao 2025-07-08 17:54:07 error “server process was terminated by signal 11: Segmentation fault” running pg_create_logical_replication_slot using pgoutput plugin
Previous Message Soni M 2025-07-06 15:15:38 Re: Logical Replication 08P01 invalid memory alloc request size 1095736448

Browse pgsql-hackers by date

  From Date Subject
Next Message Dmitry Dolgov 2025-07-07 13:06:41 Re: Changing shared_buffers without restart
Previous Message Nazir Bilal Yavuz 2025-07-07 12:41:30 Re: [PATCH] Fix OAuth feature detection on OpenBSD+Meson