From: | Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com> |
---|---|
To: | Jesper Pedersen <jesper(dot)pedersen(at)redhat(dot)com> |
Cc: | Michael Paquier <michael(dot)paquier(at)gmail(dot)com>, Ashutosh Sharma <ashu(dot)coek88(at)gmail(dot)com>, Jeff Janes <jeff(dot)janes(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: pageinspect: Hash index support |
Date: | 2016-09-29 20:00:17 |
Message-ID: | f52f2117-627b-baa3-1e83-59394e881bf5@2ndquadrant.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
I think we should look into handling the different page types better.
The hash_page_stats function was copied from btree, which only has one
type. It's not clear whether all the values apply to each page type.
At least they should be null if they don't apply. BRIN has a separate
function for each page type, which might make more sense. I suggest
taken the test suite that I posted and expanding the tests so that we
see output for each different page type.
Besides that, I would still like better data types for some of the
output columns, as previously discussed. In addition to what I already
pointed out, the ctid column can be of type ctid instead of text.
Since the commit fest is drawing to a close, I'll set this patch as
returned with feedback. Please continue working on it, since there is
clearly renewed interest in hash indexes, and we'll need this type of
functionality for that.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2016-09-29 20:02:06 | Re: pageinspect: Hash index support |
Previous Message | Thomas Kellerer | 2016-09-29 19:50:34 | pg_upgrade from 9.5 to 9.6 fails with "invalid argument" |