postgresql/src/backend/utils
Tom Lane cf9da98600 Remove broken and useless entry-count printing in HASH_DEBUG code.
init_htab(), with #define HASH_DEBUG, prints a bunch of hashtable
parameters.  It used to also print nentries, but commit 44ca4022f changed
that to "hash_get_num_entries(hctl)", which is wrong (the parameter should
be "hashp").

Rather than correct the coding, though, let's just remove that field from
the printout.  The table must be empty, since we just finished building
it, so expensively calculating the number of entries is rather pointless.
Moreover hash_get_num_entries makes assumptions (about not needing locks)
which we could do without in debugging code.

Noted by Choi Doo-Won in bug #14764.  Back-patch to 9.6 where the
faulty code was introduced.

Discussion: https://postgr.es/m/20170802032353.8424.12274@wrigleys.postgresql.org
2017-08-02 12:16:57 -04:00
..
adt Ensure that pg_get_ruledef()'s output matches pg_get_viewdef()'s. 2017-07-24 15:16:31 -04:00
cache Fix new warnings from GCC 7 2017-05-16 08:52:39 -04:00
error Fix new warnings from GCC 7 2017-05-16 08:52:39 -04:00
fmgr Fix typos in comments. 2017-02-06 11:34:15 +02:00
hash Remove broken and useless entry-count printing in HASH_DEBUG code. 2017-08-02 12:16:57 -04:00
init Unify SIGHUP handling between normal and walsender backends. 2017-06-05 19:18:16 -07:00
mb Add KOI8-U map files to Makefile. 2017-02-02 14:13:47 +02:00
misc Add missing comment in postgresql.conf. 2017-07-31 11:27:58 +09:00
mmgr Use doubly-linked block lists in aset.c to reduce large-chunk overhead. 2017-03-08 12:21:12 -05:00
resowner pgindent run for 9.6 2016-06-09 18:02:36 -04:00
sort Avoid integer overflow while sifting-up a heap in tuplesort.c. 2017-07-12 13:24:16 -04:00
time Fix new warnings from GCC 7 2017-05-16 08:52:39 -04:00
.gitignore Avoid maintaining three separate copies of the error codes list. 2011-02-03 22:32:49 -05:00
errcodes.txt Add the "snapshot too old" feature 2016-04-08 14:36:30 -05:00
Gen_dummy_probes.pl Finish pgindent run for 9.6: Perl files. 2016-06-12 04:19:56 -04:00
Gen_dummy_probes.sed Update copyright for 2016 2016-01-02 13:33:40 -05:00
Gen_fmgrtab.pl Update copyright for 2016 2016-01-02 13:33:40 -05:00
generate-errcodes.pl Update copyright for 2016 2016-01-02 13:33:40 -05:00
Makefile Make handling of errcodes.h more consistent with other generated headers. 2011-02-04 09:29:10 -05:00
probes.d Update copyright for 2016 2016-01-02 13:33:40 -05:00