Possible copy and past error? (\usr\backend\commands\analyze.c)

From: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Possible copy and past error? (\usr\backend\commands\analyze.c)
Date: 2020-03-27 22:11:17
Message-ID: CAEudQAqwAOCpF_xXhfPYqHcNp3DKBqdX0ixxx9-V33F=9-KrQw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,
Can someone check if there is a copy and paste error, at file:
\usr\backend\commands\analyze.c, at lines 2225 and 2226?

int num_mcv = stats->attr->attstattarget;
int num_bins = stats->attr->attstattarget;

If they really are the same values, it could be changed to:

int num_mcv = stats->attr->attstattarget;
int num_bins = num_mcv;

To silence this alert.

best regards,
Ranier Vilela

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fabien COELHO 2020-03-27 22:13:32 Re: pgbench - refactor init functions with buffers
Previous Message Stephen Frost 2020-03-27 22:09:10 Re: backup manifests