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
2145a766
Commit
2145a766
authored
Oct 05, 2015
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
psql: allow \pset C in setting the title, matches \C
Report by David G. Johnston
parent
2d87eedc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
doc/src/sgml/ref/psql-ref.sgml
doc/src/sgml/ref/psql-ref.sgml
+1
-1
src/bin/psql/command.c
src/bin/psql/command.c
+2
-2
No files found.
doc/src/sgml/ref/psql-ref.sgml
View file @
2145a766
...
...
@@ -2336,7 +2336,7 @@ lo_import 152801
</varlistentry>
<varlistentry>
<term><literal>title</literal></term>
<term><literal>title</literal>
(or <literal>C</literal>)
</term>
<listitem>
<para>
Sets the table title for any subsequently printed tables. This
...
...
src/bin/psql/command.c
View file @
2145a766
...
...
@@ -2637,7 +2637,7 @@ do_pset(const char *param, const char *value, printQueryOpt *popt, bool quiet)
}
/* set title override */
else
if
(
strcmp
(
param
,
"title"
)
==
0
)
else
if
(
strcmp
(
param
,
"
C"
)
==
0
||
strcmp
(
param
,
"
title"
)
==
0
)
{
free
(
popt
->
title
);
if
(
!
value
)
...
...
@@ -2837,7 +2837,7 @@ printPsetInfo(const char *param, struct printQueryOpt *popt)
}
/* show title override */
else
if
(
strcmp
(
param
,
"title"
)
==
0
)
else
if
(
strcmp
(
param
,
"
C"
)
==
0
||
strcmp
(
param
,
"
title"
)
==
0
)
{
if
(
popt
->
title
)
printf
(
_
(
"Title is
\"
%s
\"
.
\n
"
),
popt
->
title
);
...
...
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