Skip to content

Commit 0b511f0

Browse files
committed
psql's HISTSIZE from .psqlrc do not want to be set so I did it for psql
that HISTSIZE might take effect from my .psqlrc Andriy Tkachuk
1 parent 1e10017 commit 0b511f0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/bin/psql/input.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2003, PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/input.c,v 1.28 2003/08/04 23:59:40 tgl Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/input.c,v 1.29 2003/08/26 18:35:31 momjian Exp $
77
*/
88
#include "postgres_fe.h"
99
#include "input.h"
@@ -187,7 +187,8 @@ initializeInput(int flags)
187187
initialize_readline();
188188

189189
useHistory = true;
190-
SetVariable(pset.vars, "HISTSIZE", "500");
190+
if (GetVariable(pset.vars, "HISTSIZE") == NULL)
191+
SetVariable(pset.vars, "HISTSIZE", "500");
191192
using_history();
192193
home = getenv("HOME");
193194
if (home)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy