Possible copy and past error? (\usr\backend\commands\analyze.c) - Mailing list pgsql-hackers

From Ranier Vilela
Subject Possible copy and past error? (\usr\backend\commands\analyze.c)
Date
Msg-id CAEudQAqwAOCpF_xXhfPYqHcNp3DKBqdX0ixxx9-V33F=9-KrQw@mail.gmail.com
Whole thread Raw
Responses Re: Possible copy and past error? (\usr\backend\commands\analyze.c)  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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

pgsql-hackers by date:

Previous
From: Stephen Frost
Date:
Subject: Re: backup manifests
Next
From: Fabien COELHO
Date:
Subject: Re: pgbench - refactor init functions with buffers