mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +03:00
Add psql PROMPT variable showing the pid of the connected to backend.
The substitution for the pid is %p. Author: Julien Rouhaud Discussion: 116262CF971C844FB6E793F8809B51C6E99D48@BPXM02GP.gisp.nec.co.jp
This commit is contained in:
@@ -3364,6 +3364,13 @@ testdb=> <userinput>INSERT INTO my_table VALUES (:'content');</userinput>
|
||||
</listitem>
|
||||
</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>
|
||||
|
Reference in New Issue
Block a user