Adding the host name to the PgSQL shell

Поиск
Список
Период
Сортировка
Искать
От
Madison Kelly
Тема
Adding the host name to the PgSQL shell
Дата
Msg-id
4A2D4003.2010109@alteeve.com
Список
Дерево обсуждения
Adding the host name to the PgSQL shell Madison Kelly <linux@alteeve.com>
Re: Adding the host name to the PgSQL shell Scott Mead <scott.lists@enterprisedb.com>
Re: Adding the host name to the PgSQL shell Madison Kelly <linux@alteeve.com>
Re: Adding the host name to the PgSQL shell Scott Mead <scott.lists@enterprisedb.com>
Re: Adding the host name to the PgSQL shell Madison Kelly <linux@alteeve.com>
Re: Adding the host name to the PgSQL shell "Roderick A. Anderson" <raanders@cyber-office.net>
Hi all,

   I work on a development and production server, and I am always 
double-checking myself to make sure I am doing something on the right 
server.

   Is there a way, like in terminal shells, to change the PgSQL shell's 
prompt from 'db=>' to something like 'host@db=>'? I'm on PgSQL 8.1 
(server on Debian) and 8.3 (devel on Ubuntu), in case it matters.

Thanks all!

Madi
В списке pgsql-general по дате отправления
От: Vyacheslav Kalinin
Дата:
От: Richard Huxton
Дата:
FAQ