diff options
Diffstat (limited to 'pgcli/main.py')
-rwxr-xr-x | pgcli/main.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pgcli/main.py b/pgcli/main.py index 431e282f..4d29e0aa 100755 --- a/pgcli/main.py +++ b/pgcli/main.py @@ -682,6 +682,9 @@ class PGCli(object): string = string.replace('\\u', self.pgexecute.user or '(none)') string = string.replace('\\h', self.pgexecute.host or '(none)') string = string.replace('\\d', self.pgexecute.dbname or '(none)') + string = string.replace('\\p', str(self.pgexecute.port) or '(none)') + string = string.replace('\\i', str(self.pgexecute.pid) or '(none)') + string = string.replace('\\#', "#" if (self.pgexecute.superuser) else ">") string = string.replace('\\n', "\n") return string |