diff options
| author | Andres Freund | 2015-07-07 11:40:44 +0000 |
|---|---|---|
| committer | Andres Freund | 2015-07-07 11:40:44 +0000 |
| commit | 275f05c990c46f8dfe3cb46a3279521bda9e9e27 (patch) | |
| tree | 36cf85d8290248722ab6b4f37b5f5b86dc71e3d5 /doc/src | |
| parent | b2f6f749c7a5936adbb555e248e8e4df35c00a4a (diff) | |
Add psql PROMPT variable showing the pid of the connected to backend.
The substitution for the pid is %p.
Author: Julien Rouhaud
Discussion: [email protected]
Diffstat (limited to 'doc/src')
| -rw-r--r-- | doc/src/sgml/ref/psql-ref.sgml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml index d17d405f20f..ac609fdf56a 100644 --- a/doc/src/sgml/ref/psql-ref.sgml +++ b/doc/src/sgml/ref/psql-ref.sgml @@ -3365,6 +3365,13 @@ testdb=> <userinput>INSERT INTO my_table VALUES (:'content');</userinput> </varlistentry> <varlistentry> + <term><literal>%p</literal></term> + <listitem> + <para>The pid of the backend currently connected to.</para> + </listitem> + </varlistentry> + + <varlistentry> <term><literal>%></literal></term> <listitem><para>The port number at which the database server is listening.</para></listitem> </varlistentry> |
