Server name in psql prompt

Поиск
Список
Период
Сортировка
От Mark Morgan Lloyd
Тема Server name in psql prompt
Дата
Msg-id hi74e4$f6o$1@pye-srv-01.telemetry.co.uk
обсуждение исходный текст
Ответы Re: Server name in psql prompt  (Filip Rembiałkowski <plk.zuber@gmail.com>)
Re: Server name in psql prompt  (Glyn Astill <glynastill@yahoo.co.uk>)
Re: Server name in psql prompt  (hubert depesz lubaczewski <depesz@depesz.com>)
Re: Server name in psql prompt  (Simon Riggs <simon@2ndQuadrant.com>)
Re: Server name in psql prompt  ("Greg Sabino Mullane" <greg@turnstep.com>)
Список pgsql-general
Is there any way of getting psql to display the name of the
currently-connected server in its prompt, and perhaps a custom string
identifying e.g. a disc set, without having to create a psqlrc file on
every client system that's got a precompiled psql installed?

I've just come close to dropping a table that would have been
embarrassing because I couldn't see which server an instance of psql was
talking to. Now obviously that's due to lackwittedness on my part and it
could be cured by installing psqlrc files- but this might not be a
viable option since it means chasing down every psql binary that's been
installed on the LAN in an attempt to protect users from self-harm: far
nicer if the default psql prompt could be loaded from the server.

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

В списке pgsql-general по дате отправления:

Предыдущее
От: Alban Hertroys
Дата:
Сообщение: Re: Rows missing from table despite FK constraint
Следующее
От: Filip Rembiałkowski
Дата:
Сообщение: Re: Server name in psql prompt