Thanks to visit codestin.com
Credit goes to postgrespro.com

Re: tuplesort.c's copytup_index() is dead code - Mailing list pgsql-hackers

From Tom Lane
Subject Re: tuplesort.c's copytup_index() is dead code
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: tuplesort.c's copytup_index() is dead code  (Peter Geoghegan <[email protected]>)
Responses Re: tuplesort.c's copytup_index() is dead code
List pgsql-hackers
Peter Geoghegan <[email protected]> writes:
> FWIW, I think that that bug tells us a lot about hash index usage in
> the field. It took many months for someone to complain about what
> ought to have been a really obvious bug. Clearly, hardly anybody is
> using hash indexes. I broke hash index tuplesort builds in a similar
> way at one point, too. The slightest bit of regression test coverage
> would have caught either bug, I believe.

We *do* have regression test coverage, but that code is set up to not
kick in at any index scale that would be sane to test in the regression
tests.  See
https://www.postgresql.org/message-id/[email protected]
        regards, tom lane



pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: tuplesort.c's copytup_index() is dead code
Next
From: Peter Geoghegan
Date:
Subject: Re: tuplesort.c's copytup_index() is dead code