pgsql: Make gistvacuumcleanup() count the actual number of index tuples

2018-03-02 Thread Tom Lane
Make gistvacuumcleanup() count the actual number of index tuples. Previously, it just returned the heap tuple count, which might be only an estimate, and would be completely the wrong thing if the index is partial. Since this function scans every index page anyway to find free pages, it's practica

pgsql: Make gistvacuumcleanup() count the actual number of index tuples

2018-03-02 Thread Tom Lane
Make gistvacuumcleanup() count the actual number of index tuples. Previously, it just returned the heap tuple count, which might be only an estimate, and would be completely the wrong thing if the index is partial. Since this function scans every index page anyway to find free pages, it's practica

pgsql: Make gistvacuumcleanup() count the actual number of index tuples

2018-03-02 Thread Tom Lane
Make gistvacuumcleanup() count the actual number of index tuples. Previously, it just returned the heap tuple count, which might be only an estimate, and would be completely the wrong thing if the index is partial. Since this function scans every index page anyway to find free pages, it's practica

pgsql: Make gistvacuumcleanup() count the actual number of index tuples

2018-03-02 Thread Tom Lane
Make gistvacuumcleanup() count the actual number of index tuples. Previously, it just returned the heap tuple count, which might be only an estimate, and would be completely the wrong thing if the index is partial. Since this function scans every index page anyway to find free pages, it's practica

pgsql: Make gistvacuumcleanup() count the actual number of index tuples

2018-03-02 Thread Tom Lane
Make gistvacuumcleanup() count the actual number of index tuples. Previously, it just returned the heap tuple count, which might be only an estimate, and would be completely the wrong thing if the index is partial. Since this function scans every index page anyway to find free pages, it's practica

pgsql: Make gistvacuumcleanup() count the actual number of index tuples

2018-03-02 Thread Tom Lane
Make gistvacuumcleanup() count the actual number of index tuples. Previously, it just returned the heap tuple count, which might be only an estimate, and would be completely the wrong thing if the index is partial. Since this function scans every index page anyway to find free pages, it's practica