Re: Psql patch to show access methods info - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Psql patch to show access methods info
Date
Msg-id 20190917180138.GA12497@alvherre.pgsql
Whole thread Raw
In response to Re: Psql patch to show access methods info  (Alexander Korotkov <a.korotkov@postgrespro.ru>)
Responses Re: Psql patch to show access methods info
List pgsql-hackers
It seems strange that there's a way to display AMs, and a way to display
ops and procs in an opfamily; but there's no way to list what opfamilies
exist (possibly given an AM as pattern).  Should we add that too?  We
had \dAf in the original submission, but that seems to have lost along
the way, not sure why.

I think \dAf is just as critical as \dAo; the former lets you know which
opfamilies you can use in CREATE INDEX, while the latter lets you know
which operators would be helped by such an index.  (But, really, only if
the opfamily name is printed in \d of the index, which we currently
don't print unless it's non-default ... which is an omission that
perhaps we should consider fixing).

On the other hand, from a user perspective, what you really want to know
is: what opfamilies exist for datatype T, and what operators are
supported by the opfamily I have chosen?  The current patch doesn't
really help you find that out.

I think \dAp isn't terribly informative from a user perspective.  The
support procs are just an opfamily implementation detail.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: "Jonathan S. Katz"
Date:
Subject: Re: Define jsonpath functions as stable
Next
From: Paul Draper
Date:
Subject: Re: Implementing Incremental View Maintenance