psql \df option for procedures

Started by Peter Eisentrautabout 8 years ago6 messageshackers
Beta feature

Hackorum builds and tests every patch posted to the lists, not only commitfest submissions. This is Hackorum's own CI rather than the PostgreSQL project's, and it is still under testing - please report anything that looks wrong.

won't retrysuccessCI history

You can run a PostgreSQL built from this patch straight from Docker, with no checkout and no build:

docker run --rm -p 5432:5432 ghcr.io/hackorum-dev/postgres-patch:t38986
psql -h localhost -U postgres

Built from patchset v5 (message #5), July 27, 2026 at 08:07 PM.

Every patchset is also pushed to a branch of our PostgreSQL fork, so you can check out the same tree CI built. Without a PostgreSQL checkout:

git clone --branch t38986_5 https://github.com/hackorum-dev/postgres.git

In a checkout you already have, add the fork once:

git remote add hackorum https://github.com/hackorum-dev/postgres.git

then, for this patchset and every later one:

git fetch hackorum t38986_5 && git checkout t38986_5

Patchset v5 (message #5) is on t38986_5

Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

psql's \df command current has options a/n/t/w to show
aggregates/normal/trigger/window functions. Do we want to add something
for procedures?

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

#2Andrew Gierth
andrew@tao11.riddles.org.uk
In reply to: Peter Eisentraut (#1)
Re: psql \df option for procedures

"Peter" == Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:

Peter> psql's \df command current has options a/n/t/w to show
Peter> aggregates/normal/trigger/window functions. Do we want to add
Peter> something for procedures?

yes

--
Andrew (irc:RhodiumToad)

#3Fabrízio de Royes Mello
fabriziomello@gmail.com
In reply to: Peter Eisentraut (#1)
Re: psql \df option for procedures

On Mon, Jul 2, 2018 at 7:07 AM, Peter Eisentraut <
peter.eisentraut@2ndquadrant.com> wrote:

psql's \df command current has options a/n/t/w to show
aggregates/normal/trigger/window functions. Do we want to add something
for procedures?

+1. I can write a patch to save your time If you don't do it yet.

Regards,

--
Fabrízio de Royes Mello Timbira - http://www.timbira.com.br/
PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento

#4Isaac Morland
isaac.morland@gmail.com
In reply to: Fabrízio de Royes Mello (#3)
Re: psql \df option for procedures

While you're looking at \df, you might want to consider removing the
display of source code (we have \sf for that, and it takes up a lot of
space), and add a column to display access permissions (who can execute the
function).

On 2 July 2018 at 09:22, Fabrízio de Royes Mello <fabriziomello@gmail.com>
wrote:

Show quoted text

On Mon, Jul 2, 2018 at 7:07 AM, Peter Eisentraut <
peter.eisentraut@2ndquadrant.com> wrote:

psql's \df command current has options a/n/t/w to show
aggregates/normal/trigger/window functions. Do we want to add something
for procedures?

+1. I can write a patch to save your time If you don't do it yet.

Regards,

--
Fabrízio de Royes Mello Timbira - http://www.timbira.com.br/
PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento

#5Peter Eisentraut
peter_e@gmx.net
In reply to: Peter Eisentraut (#1)
Re: psql \df option for procedures

On 02.07.18 12:07, Peter Eisentraut wrote:

psql's \df command current has options a/n/t/w to show
aggregates/normal/trigger/window functions. Do we want to add something
for procedures?

Here is a patch.

The updated help string doesn't read particularly elegantly. Better ideas?

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

Attachments:

t38986_5
0001-psql-Add-option-for-procedures-to-df.patchtext/plain; charset=UTF-8; name=0001-psql-Add-option-for-procedures-to-df.patch; x-mac-creator=0; x-mac-type=0Download+43-10
#6Peter Eisentraut
peter_e@gmx.net
In reply to: Peter Eisentraut (#5)
Re: psql \df option for procedures

On 14.07.18 12:20, Peter Eisentraut wrote:

On 02.07.18 12:07, Peter Eisentraut wrote:

psql's \df command current has options a/n/t/w to show
aggregates/normal/trigger/window functions. Do we want to add something
for procedures?

Here is a patch.

committed

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