psql's HISTSIZE from .psqlrc do not want to be set

From: Andriy Tkachuk <ant(at)imt(dot)com(dot)ua>
To: pgsql-patches(at)postgresql(dot)org
Subject: psql's HISTSIZE from .psqlrc do not want to be set
Date: 2003-08-13 07:42:27
Message-ID: 20030813103458.F48630-100000@pool.imt.com.ua
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Hi folks.

I did it for psql that HISTSIZE might take effect from my .psqlrc

[10:31]p1:ant(at)pool:~/soft/pgsql/src/bin/psql>cvs diff
Index: input.c
===================================================================
RCS file: /projects/cvsroot/pgsql-server/src/bin/psql/input.c,v
retrieving revision 1.21
diff -r1.21 input.c
142c142,143
< SetVariable(pset.vars, "HISTSIZE", "500");
---
> if (GetVariable(pset.vars, "HISTSIZE") == NULL)
> SetVariable(pset.vars, "HISTSIZE", "500");

Thanks,
Andriy.

--
Because strait is the gate, and narrow is the way, which leadeth unto
life, and few there be that find it. (MAT 7:14)
Ask, and it shall be given you; seek, and ye shall find;
knock, and it shall be opened unto you... (MAT 7:7)

ANT17-RIPE

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Bertrand Petit 2003-08-13 12:56:45 7.4 beta 1: SET log_statement=false
Previous Message Bruce Momjian 2003-08-13 03:12:09 Re: Minor build fix for CVS HEAD