\prompt for psql

Поиск
Список
Период
Сортировка
От Chad Wagner
Тема \prompt for psql
Дата
Msg-id 81961ff50702071921y31492a99xaa8e0002fb2c4b51@mail.gmail.com
обсуждение исходный текст
Ответы Re: \prompt for psql  (Peter Eisentraut <peter_e@gmx.net>)
Re: \prompt for psql  ("Gurjeet Singh" <singh.gurjeet@gmail.com>)
Список pgsql-patches
This adds the ability to "prompt" for internal variable input, below are examples:

test=# \prompt x
Enter value for "x": 3
test=# select * from foo where x = :x;
 x
---
 3
(1 row)

test=# \prompt x Enter x:
Enter x: 4
test=# select * from foo where x = :x;
 x
---
 4
(1 row)



====

The input is limited to 4k, should be reasonable enough.  Patch is against CVS HEAD.
Вложения

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: TM formating patch
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [GENERAL] date comparisons