Re: To do for psql to show installable extensions - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: To do for psql to show installable extensions
Date
Msg-id 20150112211633.GE1663@alvh.no-ip.org
Whole thread Raw
In response to To do for psql to show installable extensions  (Jeff Janes <jeff.janes@gmail.com>)
Responses Re: To do for psql to show installable extensions
List pgsql-hackers
Jeff Janes wrote:
> I'd like to propose a wiki to-do item for a backslash command in psql which
> would show all installable extensions, basically just a wrapper around
> 'select * from pg_available_extensions'.
> 
> I've wanted it a few times recently, mostly in testing.

+1.

> Any reason this wouldn't be desirable?

No idea.  I guess if pg_available_extensions is acceptable, a \-command
should be acceptable as well.  But you might as well look up the old
discussions that led to the current situation where we have an SRF and
not a \-command.

> What should it be called?

\dxx / \dxi ?   As long as it shows in \dx<tab> I am fine with almost
anything sensible, really.

> I thought of \dx+, but the + is already used to show the objects
> associated with the extensions.  (Althought it seems like it would
> more in keeping with other usage if \dx+ only listed the objects if it
> was given a pattern, and did what I propose if given no pattern)

I hate the pattern/no pattern discrepancy -- I vote not to propagate it
any further.

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



pgsql-hackers by date:

Previous
From: Jeff Janes
Date:
Subject: To do for psql to show installable extensions
Next
From: Stephen Frost
Date:
Subject: Re: To do for psql to show installable extensions