Adding the host name to the PgSQL shell

Поиск
Список
Период
Сортировка
От Madison Kelly
Тема Adding the host name to the PgSQL shell
Дата
Msg-id 4A2D4003.2010109@alteeve.com
обсуждение исходный текст
Ответы Re: Adding the host name to the PgSQL shell  (Scott Mead <scott.lists@enterprisedb.com>)
Список pgsql-general
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
Дата:
Сообщение: Re: Duplicate key issue in a transaction block
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: [SQL] 'cost' and 'rows' for volitile function