\prompt for psql - Mailing list pgsql-patches

From Chad Wagner
Subject \prompt for psql
Date
Msg-id 81961ff50702071921y31492a99xaa8e0002fb2c4b51@mail.gmail.com
Whole thread Raw
Responses Re: \prompt for psql
Re: \prompt for psql
List 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.
Attachment

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: TM formating patch
Next
From: Bruce Momjian
Date:
Subject: Re: [GENERAL] date comparisons