dbTalk Databases Forums  

psql commandline use

comp.databases.postgresql comp.databases.postgresql


Discuss psql commandline use in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Coniglio Sgabbiato
 
Posts: n/a

Default psql commandline use - 04-30-2008 , 02:48 AM






Hi, I mostly use PG from command line, I wish to get a command that
enable me to see already defined functions, procedures, triggers etc etc.
I looked for such a command on documentation but wasn't able to find
anything, does someone know how to get it? Furthermore, does someone
knows a web page dealing about psql for power users?
Thanks in advance and sorry for bad English from Italian guy

Reply With Quote
  #2  
Old   
Ben Finney
 
Posts: n/a

Default Re: psql commandline use - 04-30-2008 , 06:49 AM






Coniglio Sgabbiato <nobody (AT) nowhere (DOT) it> writes:

Quote:
Hi, I mostly use PG from command line, I wish to get a command that
enable me to see already defined functions, procedures, triggers etc
etc.
In an interactive 'psql' session, use the '\?' shortcut to see a list
of other shortcut commands. (I'm calling them "shortcuts" because
behind the scenes most of them merely perform a specific query on the
database.)

The 'Informational' section is especially relevant here; most of them
are "list" commands.

Any of these can be executed from a command-line by simply providing
the command on standard input to 'psql'. For example, to list
functions in the 'public' schema of database 'dbname':

$ echo '\df public.*' | psql dbname username

--
\ "I like to fill my bathtub up with water, then turn the shower |
`\ on and pretend I'm in a submarine that's been hit." -- Steven |
_o__) Wright |
Ben Finney


Reply With Quote
  #3  
Old   
Ben Finney
 
Posts: n/a

Default Re: psql commandline use - 04-30-2008 , 06:49 AM



Coniglio Sgabbiato <nobody (AT) nowhere (DOT) it> writes:

Quote:
Hi, I mostly use PG from command line, I wish to get a command that
enable me to see already defined functions, procedures, triggers etc
etc.
In an interactive 'psql' session, use the '\?' shortcut to see a list
of other shortcut commands. (I'm calling them "shortcuts" because
behind the scenes most of them merely perform a specific query on the
database.)

The 'Informational' section is especially relevant here; most of them
are "list" commands.

Any of these can be executed from a command-line by simply providing
the command on standard input to 'psql'. For example, to list
functions in the 'public' schema of database 'dbname':

$ echo '\df public.*' | psql dbname username

--
\ "I like to fill my bathtub up with water, then turn the shower |
`\ on and pretend I'm in a submarine that's been hit." -- Steven |
_o__) Wright |
Ben Finney


Reply With Quote
  #4  
Old   
Ben Finney
 
Posts: n/a

Default Re: psql commandline use - 04-30-2008 , 06:49 AM



Coniglio Sgabbiato <nobody (AT) nowhere (DOT) it> writes:

Quote:
Hi, I mostly use PG from command line, I wish to get a command that
enable me to see already defined functions, procedures, triggers etc
etc.
In an interactive 'psql' session, use the '\?' shortcut to see a list
of other shortcut commands. (I'm calling them "shortcuts" because
behind the scenes most of them merely perform a specific query on the
database.)

The 'Informational' section is especially relevant here; most of them
are "list" commands.

Any of these can be executed from a command-line by simply providing
the command on standard input to 'psql'. For example, to list
functions in the 'public' schema of database 'dbname':

$ echo '\df public.*' | psql dbname username

--
\ "I like to fill my bathtub up with water, then turn the shower |
`\ on and pretend I'm in a submarine that's been hit." -- Steven |
_o__) Wright |
Ben Finney


Reply With Quote
  #5  
Old   
Ben Finney
 
Posts: n/a

Default Re: psql commandline use - 04-30-2008 , 06:49 AM



Coniglio Sgabbiato <nobody (AT) nowhere (DOT) it> writes:

Quote:
Hi, I mostly use PG from command line, I wish to get a command that
enable me to see already defined functions, procedures, triggers etc
etc.
In an interactive 'psql' session, use the '\?' shortcut to see a list
of other shortcut commands. (I'm calling them "shortcuts" because
behind the scenes most of them merely perform a specific query on the
database.)

The 'Informational' section is especially relevant here; most of them
are "list" commands.

Any of these can be executed from a command-line by simply providing
the command on standard input to 'psql'. For example, to list
functions in the 'public' schema of database 'dbname':

$ echo '\df public.*' | psql dbname username

--
\ "I like to fill my bathtub up with water, then turn the shower |
`\ on and pretend I'm in a submarine that's been hit." -- Steven |
_o__) Wright |
Ben Finney


Reply With Quote
  #6  
Old   
Ben Finney
 
Posts: n/a

Default Re: psql commandline use - 04-30-2008 , 06:49 AM



Coniglio Sgabbiato <nobody (AT) nowhere (DOT) it> writes:

Quote:
Hi, I mostly use PG from command line, I wish to get a command that
enable me to see already defined functions, procedures, triggers etc
etc.
In an interactive 'psql' session, use the '\?' shortcut to see a list
of other shortcut commands. (I'm calling them "shortcuts" because
behind the scenes most of them merely perform a specific query on the
database.)

The 'Informational' section is especially relevant here; most of them
are "list" commands.

Any of these can be executed from a command-line by simply providing
the command on standard input to 'psql'. For example, to list
functions in the 'public' schema of database 'dbname':

$ echo '\df public.*' | psql dbname username

--
\ "I like to fill my bathtub up with water, then turn the shower |
`\ on and pretend I'm in a submarine that's been hit." -- Steven |
_o__) Wright |
Ben Finney


Reply With Quote
  #7  
Old   
Ben Finney
 
Posts: n/a

Default Re: psql commandline use - 04-30-2008 , 06:49 AM



Coniglio Sgabbiato <nobody (AT) nowhere (DOT) it> writes:

Quote:
Hi, I mostly use PG from command line, I wish to get a command that
enable me to see already defined functions, procedures, triggers etc
etc.
In an interactive 'psql' session, use the '\?' shortcut to see a list
of other shortcut commands. (I'm calling them "shortcuts" because
behind the scenes most of them merely perform a specific query on the
database.)

The 'Informational' section is especially relevant here; most of them
are "list" commands.

Any of these can be executed from a command-line by simply providing
the command on standard input to 'psql'. For example, to list
functions in the 'public' schema of database 'dbname':

$ echo '\df public.*' | psql dbname username

--
\ "I like to fill my bathtub up with water, then turn the shower |
`\ on and pretend I'm in a submarine that's been hit." -- Steven |
_o__) Wright |
Ben Finney


Reply With Quote
  #8  
Old   
Ben Finney
 
Posts: n/a

Default Re: psql commandline use - 04-30-2008 , 06:49 AM



Coniglio Sgabbiato <nobody (AT) nowhere (DOT) it> writes:

Quote:
Hi, I mostly use PG from command line, I wish to get a command that
enable me to see already defined functions, procedures, triggers etc
etc.
In an interactive 'psql' session, use the '\?' shortcut to see a list
of other shortcut commands. (I'm calling them "shortcuts" because
behind the scenes most of them merely perform a specific query on the
database.)

The 'Informational' section is especially relevant here; most of them
are "list" commands.

Any of these can be executed from a command-line by simply providing
the command on standard input to 'psql'. For example, to list
functions in the 'public' schema of database 'dbname':

$ echo '\df public.*' | psql dbname username

--
\ "I like to fill my bathtub up with water, then turn the shower |
`\ on and pretend I'm in a submarine that's been hit." -- Steven |
_o__) Wright |
Ben Finney


Reply With Quote
  #9  
Old   
Ben Finney
 
Posts: n/a

Default Re: psql commandline use - 04-30-2008 , 06:49 AM



Coniglio Sgabbiato <nobody (AT) nowhere (DOT) it> writes:

Quote:
Hi, I mostly use PG from command line, I wish to get a command that
enable me to see already defined functions, procedures, triggers etc
etc.
In an interactive 'psql' session, use the '\?' shortcut to see a list
of other shortcut commands. (I'm calling them "shortcuts" because
behind the scenes most of them merely perform a specific query on the
database.)

The 'Informational' section is especially relevant here; most of them
are "list" commands.

Any of these can be executed from a command-line by simply providing
the command on standard input to 'psql'. For example, to list
functions in the 'public' schema of database 'dbname':

$ echo '\df public.*' | psql dbname username

--
\ "I like to fill my bathtub up with water, then turn the shower |
`\ on and pretend I'm in a submarine that's been hit." -- Steven |
_o__) Wright |
Ben Finney


Reply With Quote
  #10  
Old   
Laurenz Albe
 
Posts: n/a

Default Re: psql commandline use - 04-30-2008 , 10:02 AM



Coniglio Sgabbiato <nobody (AT) nowhere (DOT) it> wrote:
Quote:
Furthermore, does someone
knows a web page dealing about psql for power users?
http://www.postgresql.org/docs/curre.../app-psql.html

or alternatively the man page.

So far it has answered all I needed to know about psql, and I would
call myself a power user.

Yours,
Laurenz Albe


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.