Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
02d79e76
Commit
02d79e76
authored
Jul 28, 2003
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename psql's VERBOSE variable to VERBOSITY, per suggestion from Bruce.
parent
81b5c8a1
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
13 deletions
+13
-13
doc/src/sgml/ref/psql-ref.sgml
doc/src/sgml/ref/psql-ref.sgml
+2
-2
src/bin/psql/command.c
src/bin/psql/command.c
+7
-7
src/bin/psql/command.h
src/bin/psql/command.h
+2
-2
src/bin/psql/startup.c
src/bin/psql/startup.c
+2
-2
No files found.
doc/src/sgml/ref/psql-ref.sgml
View file @
02d79e76
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.9
2 2003/07/27 03:32:26 momjian
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.9
3 2003/07/28 00:14:42 tgl
Exp $
PostgreSQL documentation
-->
...
...
@@ -2066,7 +2066,7 @@ bar
</varlistentry>
<varlistentry>
<term><varname>VERBOS
E
</varname></term>
<term><varname>VERBOS
ITY
</varname></term>
<listitem>
<para>
This variable can be set to the values <literal>default</>,
...
...
src/bin/psql/command.c
View file @
02d79e76
...
...
@@ -3,7 +3,7 @@
*
* Copyright 2000-2002 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.9
8 2003/07/23 08:47:38 petere
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.9
9 2003/07/28 00:14:42 tgl
Exp $
*/
#include "postgres_fe.h"
#include "command.h"
...
...
@@ -707,8 +707,8 @@ exec_command(const char *cmd,
if
(
SetVariable
(
pset
.
vars
,
opt0
,
newval
))
{
/* Check for special variables */
if
(
strcmp
(
opt0
,
"VERBOS
E
"
)
==
0
)
SyncVerbos
e
Variable
();
if
(
strcmp
(
opt0
,
"VERBOS
ITY
"
)
==
0
)
SyncVerbos
ity
Variable
();
}
else
{
...
...
@@ -1469,7 +1469,7 @@ SyncVariables(void)
SetVariable
(
pset
.
vars
,
"ENCODING"
,
pg_encoding_to_char
(
pset
.
encoding
));
/* send stuff to it, too */
SyncVerbos
e
Variable
();
SyncVerbos
ity
Variable
();
}
/*
...
...
@@ -1488,12 +1488,12 @@ UnsyncVariables(void)
}
/*
* Update connection state from VERBOS
E
variable
* Update connection state from VERBOS
ITY
variable
*/
void
SyncVerbos
e
Variable
(
void
)
SyncVerbos
ity
Variable
(
void
)
{
switch
(
SwitchVariable
(
pset
.
vars
,
"VERBOS
E
"
,
switch
(
SwitchVariable
(
pset
.
vars
,
"VERBOS
ITY
"
,
"default"
,
"terse"
,
"verbose"
,
NULL
))
{
case
1
:
/* default */
...
...
src/bin/psql/command.h
View file @
02d79e76
...
...
@@ -3,7 +3,7 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/command.h,v 1.1
5 2003/06/28 00:12:40
tgl Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/command.h,v 1.1
6 2003/07/28 00:14:43
tgl Exp $
*/
#ifndef COMMAND_H
#define COMMAND_H
...
...
@@ -42,6 +42,6 @@ extern void SyncVariables(void);
extern
void
UnsyncVariables
(
void
);
extern
void
SyncVerbos
e
Variable
(
void
);
extern
void
SyncVerbos
ity
Variable
(
void
);
#endif
/* COMMAND_H */
src/bin/psql/startup.c
View file @
02d79e76
...
...
@@ -3,7 +3,7 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/startup.c,v 1.7
5 2003/07/23 08:47:40 petere
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/startup.c,v 1.7
6 2003/07/28 00:14:43 tgl
Exp $
*/
#include "postgres_fe.h"
...
...
@@ -141,7 +141,7 @@ main(int argc, char *argv[])
/* Default values for variables that are used in noninteractive cases */
SetVariableBool
(
pset
.
vars
,
"AUTOCOMMIT"
);
SetVariable
(
pset
.
vars
,
"VERBOS
E
"
,
"default"
);
SetVariable
(
pset
.
vars
,
"VERBOS
ITY
"
,
"default"
);
pset
.
notty
=
(
!
isatty
(
fileno
(
stdin
))
||
!
isatty
(
fileno
(
stdout
)));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment