Neto pr <netopr9(at)gmail(dot)com> writes:> I need to know the height of a B-tree index (level of the leaf node> farthest from the root).
pageinspect's bt_metap() will give you that --- it's the "level"field, I believe.
regards, tom lane