[PATCHES] psql patch

2006-09-13 Thread Guillaume Lelarge
Hi all, You'll find attached a small patch (CVS HEAD) to allow translation on two psql strings. Please apply, thanks. Regards. -- Guillaume. Index: src/bin/psql/print.c === RCS file:

Re: [PATCHES] psql patch

2006-09-13 Thread Tom Lane
Guillaume Lelarge [EMAIL PROTECTED] writes: diff -r1.89 print.c 853c853 snprintf(record_str, 64, * Record %lu, record++); --- snprintf(record_str, 64, _(* Record %lu), record++); 855c855 snprintf(record_str, 64, [

Re: [PATCHES] psql patch

2006-09-13 Thread Guillaume Lelarge
Tom Lane a ecrit le 13/09/2006 18:05: Guillaume Lelarge [EMAIL PROTECTED] writes: diff -r1.89 print.c 853c853 snprintf(record_str, 64, * Record %lu, record++); --- snprintf(record_str, 64, _(* Record %lu), record++); 855c855

Re: [PATCHES] psql patch: new host/port without leaving session

2006-04-02 Thread Volkan YAZICI
On Apr 01 07:07, Neil Conway wrote: One question about behavior: in the attached patch, omitting an argument to \connect or specifying - are treated equivalently -- the value for that parameter from the previous connection is used, otherwise NULL (for the libpq default). Is this what people

Re: [PATCHES] psql patch: new host/port without leaving session

2006-04-02 Thread Tom Lane
Volkan YAZICI [EMAIL PROTECTED] writes: On Apr 01 07:07, Neil Conway wrote: One question about behavior: in the attached patch, omitting an argument to \connect or specifying - are treated equivalently -- the value for that parameter from the previous connection is used, otherwise NULL (for

Re: [PATCHES] psql patch: new host/port without leaving session

2006-04-02 Thread Neil Conway
On Sun, 2006-04-02 at 12:37 -0400, Tom Lane wrote: That seems like a frammish without sufficient use-case. You can always quit and restart psql to get back to the defaults. Patch applied to HEAD. If folks want to argue for the ability to instruct psql to use the libpq default for a parameter,

Re: [PATCHES] psql patch: new host/port without leaving session

2006-04-02 Thread Bruce Momjian
Neil Conway wrote: On Sun, 2006-04-02 at 12:37 -0400, Tom Lane wrote: That seems like a frammish without sufficient use-case. You can always quit and restart psql to get back to the defaults. Patch applied to HEAD. If folks want to argue for the ability to instruct psql to use the

Re: [PATCHES] psql patch: new host/port without leaving session

2006-04-01 Thread Neil Conway
On Sun, 2006-03-12 at 19:59 +0200, Volkan YAZICI wrote: I've written do_connect() and \c handling part from scratch in the attached patch. Attached is a revised version of this patch. I rewrote most of the code, because the existing stuff was in pretty bad style IMHO. I haven't updated the

Re: [PATCHES] psql patch: new host/port without leaving session

2006-03-12 Thread Volkan YAZICI
Hi, I've written do_connect() and \c handling part from scratch in the attached patch. Here are some features introduced: - \c syntax is extended. (See comment lines just above \c stuff.) - do_connect() AI (like used for prompting password or informing client about connect attempt's

Re: [PATCHES] psql patch: new host/port without leaving session

2006-02-11 Thread Bruce Momjian
Patch applied. Thanks. --- David Fetter wrote: Folks, Please find enclosed a patch that lets you use \c to connect (optionally) to a new host and port without exiting psql. This eliminates, IMHO, a surprise in that

[PATCHES] psql patch: new host/port without leaving session

2005-12-13 Thread David Fetter
Folks, Please find enclosed a patch that lets you use \c to connect (optionally) to a new host and port without exiting psql. This eliminates, IMHO, a surprise in that you can now connect to PostgreSQL on a differnt machine from the one where you started your session. This should help people who

Re: [PATCHES] psql patch for displaying the username when asking password

2005-07-27 Thread Bruce Momjian
Adrian Maier wrote: On 6/30/05, Peter Eisentraut [EMAIL PROTECTED] wrote: Am Donnerstag, 30. Juni 2005 09:34 schrieb Adrian Maier: The attached patch modifies the message displayed by psql when asking the password Password: to include the username as well: Password for user postgres

Re: [PATCHES] psql patch for displaying the username when asking password

2005-07-25 Thread Bruce Momjian
Patch adjusted slightly, attached, and applied. Thanks. --- Adrian Maier wrote: On 6/30/05, Peter Eisentraut [EMAIL PROTECTED] wrote: Am Donnerstag, 30. Juni 2005 09:34 schrieb Adrian Maier: The attached patch

[PATCHES] psql patch for displaying the username when asking password

2005-06-30 Thread Adrian Maier
Hello all, The attached patch modifies the message displayed by psql when asking the password Password: to include the username as well: Password for user postgres : . Displaying the username is useful when running sql scripts which are setting the session authorization (like the dump

Re: [PATCHES] psql patch for displaying the username when asking password

2005-06-30 Thread Peter Eisentraut
Am Donnerstag, 30. Juni 2005 09:34 schrieb Adrian Maier: The attached patch modifies the message displayed by psql when asking the password Password: to include the username as well: Password for user postgres : . I can't decode your attachment so I don't know if this is a typo or actually

Re: [PATCHES] psql patch for displaying the username when asking password

2005-06-30 Thread Adrian Maier
On 6/30/05, Peter Eisentraut [EMAIL PROTECTED] wrote: Am Donnerstag, 30. Juni 2005 09:34 schrieb Adrian Maier: The attached patch modifies the message displayed by psql when asking the password Password: to include the username as well: Password for user postgres : . I can't decode your