Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0b511f0

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 .psqlrcAndriy Tkachuk
1 parent1e10017 commit0b511f0

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)

[8]ページ先頭

©2009-2025 Movatter.jp