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
91dfa1af
Commit
91dfa1af
authored
Jul 15, 2002
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix \? and \pset pager handling. \? wasn't honoring pager before.
parent
d5fa19c6
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
98 additions
and
92 deletions
+98
-92
doc/src/sgml/ref/psql-ref.sgml
doc/src/sgml/ref/psql-ref.sgml
+3
-3
src/bin/psql/command.c
src/bin/psql/command.c
+2
-2
src/bin/psql/help.c
src/bin/psql/help.c
+76
-68
src/bin/psql/help.h
src/bin/psql/help.h
+2
-2
src/bin/psql/print.c
src/bin/psql/print.c
+7
-14
src/bin/psql/print.h
src/bin/psql/print.h
+8
-3
No files found.
doc/src/sgml/ref/psql-ref.sgml
View file @
91dfa1af
<!--
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.6
7 2002/06/20 16:00:43
momjian Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.6
8 2002/07/15 01:56:25
momjian Exp $
PostgreSQL documentation
PostgreSQL documentation
-->
-->
...
@@ -1036,7 +1036,7 @@ lo_import 152801
...
@@ -1036,7 +1036,7 @@ lo_import 152801
<term><literal>pager</literal></term>
<term><literal>pager</literal></term>
<listitem>
<listitem>
<para>
<para>
Toggles the
list of a pager to do table
output. If the
Toggles the
use of a pager for query and psql help
output. If the
environment variable <envar>PAGER</envar> is set, the output
environment variable <envar>PAGER</envar> is set, the output
is piped to the specified program. Otherwise
is piped to the specified program. Otherwise
<filename>more</filename> is used.
<filename>more</filename> is used.
...
@@ -1050,7 +1050,7 @@ lo_import 152801
...
@@ -1050,7 +1050,7 @@ lo_import 152801
of the printing routines it is not always possible to predict
of the printing routines it is not always possible to predict
the number of lines that will actually be printed. For that
the number of lines that will actually be printed. For that
reason <application>psql</application> might not appear very
reason <application>psql</application> might not appear very
discriminating about when to use the pager
and when not to
.
discriminating about when to use the pager.
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
...
...
src/bin/psql/command.c
View file @
91dfa1af
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
*
*
* Copyright 2000 by PostgreSQL Global Development Group
* Copyright 2000 by PostgreSQL Global Development Group
*
*
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.7
2 2002/04/24 05:24:00 petere
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.7
3 2002/07/15 01:56:25 momjian
Exp $
*/
*/
#include "postgres_fe.h"
#include "postgres_fe.h"
#include "command.h"
#include "command.h"
...
@@ -846,7 +846,7 @@ exec_command(const char *cmd,
...
@@ -846,7 +846,7 @@ exec_command(const char *cmd,
/* \? -- slash command help */
/* \? -- slash command help */
else
if
(
strcmp
(
cmd
,
"?"
)
==
0
)
else
if
(
strcmp
(
cmd
,
"?"
)
==
0
)
slashUsage
();
slashUsage
(
pset
.
popt
.
topt
.
pager
);
#if 0
#if 0
...
...
src/bin/psql/help.c
View file @
91dfa1af
...
@@ -3,9 +3,10 @@
...
@@ -3,9 +3,10 @@
*
*
* Copyright 2000 by PostgreSQL Global Development Group
* Copyright 2000 by PostgreSQL Global Development Group
*
*
* $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.5
1 2002/06/20 20:29:42
momjian Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.5
2 2002/07/15 01:56:25
momjian Exp $
*/
*/
#include "postgres_fe.h"
#include "postgres_fe.h"
#include "print.h"
#include "help.h"
#include "help.h"
#include <signal.h>
#include <signal.h>
...
@@ -138,7 +139,6 @@ usage(void)
...
@@ -138,7 +139,6 @@ usage(void)
}
}
/*
/*
* slashUsage
* slashUsage
*
*
...
@@ -154,98 +154,106 @@ struct winsize
...
@@ -154,98 +154,106 @@ struct winsize
#endif
#endif
void
void
slashUsage
(
void
)
slashUsage
(
bool
pager
)
{
{
bool
usePipe
=
false
;
FILE
*
output
,
*
pagerfd
=
NULL
;
const
char
*
pagerenv
;
FILE
*
fout
;
struct
winsize
screen_size
;
#ifdef TIOCGWINSZ
/* check whether we need / can / are supposed to use pager */
if
(
pset
.
notty
==
0
&&
if
(
pager
(
ioctl
(
fileno
(
stdout
),
TIOCGWINSZ
,
&
screen_size
)
==
-
1
||
#ifndef WIN32
screen_size
.
ws_col
==
0
||
&&
screen_size
.
ws_row
==
0
))
isatty
(
fileno
(
stdin
))
&&
isatty
(
fileno
(
stdout
))
#endif
)
{
{
const
char
*
pagerprog
;
#ifdef TIOCGWINSZ
int
result
;
struct
winsize
screen_size
;
result
=
ioctl
(
fileno
(
stdout
),
TIOCGWINSZ
,
&
screen_size
);
if
(
result
==
-
1
||
50
>
screen_size
.
ws_row
)
{
#endif
#endif
screen_size
.
ws_row
=
24
;
pagerprog
=
getenv
(
"PAGER"
);
screen_size
.
ws_col
=
80
;
if
(
!
pagerprog
)
pagerprog
=
DEFAULT_PAGER
;
pagerfd
=
popen
(
pagerprog
,
"w"
);
#ifdef TIOCGWINSZ
#ifdef TIOCGWINSZ
}
}
#endif
#endif
}
if
(
pset
.
notty
==
0
&&
if
(
pagerfd
)
(
pagerenv
=
getenv
(
"PAGER"
))
&&
(
pagerenv
[
0
]
!=
'\0'
)
&&
screen_size
.
ws_row
<=
46
&&
(
fout
=
popen
(
pagerenv
,
"w"
)))
{
{
usePipe
=
true
;
output
=
pagerfd
;
#ifndef WIN32
#ifndef WIN32
pqsignal
(
SIGPIPE
,
SIG_IGN
);
pqsignal
(
SIGPIPE
,
SIG_IGN
);
#endif
#endif
}
}
else
else
fo
ut
=
stdout
;
outp
ut
=
stdout
;
/* if you add/remove a line here, change the row test above */
/* if you add/remove a line here, change the row test above */
/* if this " is the start of the string then it ought to end there to fit in 80 columns >> " */
/* if this " is the start of the string then it ought to end there to fit in 80 columns >> " */
fprintf
(
fo
ut
,
_
(
"
\\
a toggle between unaligned and aligned output mode
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
a toggle between unaligned and aligned output mode
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
c[onnect] [DBNAME|- [USER]]
\n
"
fprintf
(
outp
ut
,
_
(
"
\\
c[onnect] [DBNAME|- [USER]]
\n
"
" connect to new database (currently
\"
%s
\"
)
\n
"
),
" connect to new database (currently
\"
%s
\"
)
\n
"
),
PQdb
(
pset
.
db
));
PQdb
(
pset
.
db
));
fprintf
(
fo
ut
,
_
(
"
\\
C [STRING] set table title, or unset if none
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
C [STRING] set table title, or unset if none
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
cd [DIR] change the current working directory
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
cd [DIR] change the current working directory
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
copy ... perform SQL COPY with data stream to the client host
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
copy ... perform SQL COPY with data stream to the client host
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
copyright show PostgreSQL usage and distribution terms
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
copyright show PostgreSQL usage and distribution terms
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
d [NAME] describe table (or view, index, sequence)
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
d [NAME] describe table (or view, index, sequence)
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
d{t|i|s|v|S} [PATTERN]
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
d{t|i|s|v|S} [PATTERN]
\n
"
));
fprintf
(
fo
ut
,
_
(
" list tables/indexes/sequences/views/system tables
\n
"
));
fprintf
(
outp
ut
,
_
(
" list tables/indexes/sequences/views/system tables
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
da [PATTERN] list aggregate functions
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
da [PATTERN] list aggregate functions
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
dd [PATTERN] show comment for object
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
dd [PATTERN] show comment for object
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
dD [PATTERN] list domains
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
dD [PATTERN] list domains
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
df [PATTERN] list functions
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
df [PATTERN] list functions
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
do [NAME] list operators
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
do [NAME] list operators
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
dl list large objects, same as lo_list
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
dl list large objects, same as lo_list
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
dp [PATTERN] list table access privileges
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
dp [PATTERN] list table access privileges
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
dT [PATTERN] list data types
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
dT [PATTERN] list data types
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
du [PATTERN] list users
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
du [PATTERN] list users
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
e [FILE] edit the query buffer (or file) with external editor
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
e [FILE] edit the query buffer (or file) with external editor
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
echo [STRING] write string to standard output
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
echo [STRING] write string to standard output
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
encoding [ENCODING] show or set client encoding
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
encoding [ENCODING] show or set client encoding
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
f [STRING] show or set field separator for unaligned query output
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
f [STRING] show or set field separator for unaligned query output
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
g [FILE] send query buffer to server (and results to file or |pipe)
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
g [FILE] send query buffer to server (and results to file or |pipe)
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
h [NAME] help on syntax of SQL commands, * for all commands
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
h [NAME] help on syntax of SQL commands, * for all commands
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
H toggle HTML output mode (currently %s)
\n
"
),
fprintf
(
outp
ut
,
_
(
"
\\
H toggle HTML output mode (currently %s)
\n
"
),
ON
(
pset
.
popt
.
topt
.
format
==
PRINT_HTML
));
ON
(
pset
.
popt
.
topt
.
format
==
PRINT_HTML
));
fprintf
(
fo
ut
,
_
(
"
\\
i FILE execute commands from file
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
i FILE execute commands from file
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
l list all databases
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
l list all databases
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
lo_export,
\\
lo_import,
\\
lo_list,
\\
lo_unlink
\n
"
fprintf
(
outp
ut
,
_
(
"
\\
lo_export,
\\
lo_import,
\\
lo_list,
\\
lo_unlink
\n
"
" large object operations
\n
"
));
" large object operations
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
o FILE send all query results to file or |pipe
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
o FILE send all query results to file or |pipe
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
p show the contents of the query buffer
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
p show the contents of the query buffer
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
pset NAME [VALUE] set table output option (NAME := {format|border|expanded|
\n
"
fprintf
(
outp
ut
,
_
(
"
\\
pset NAME [VALUE] set table output option (NAME := {format|border|expanded|
\n
"
" fieldsep|null|recordsep|tuples_only|title|tableattr|pager})
\n
"
));
" fieldsep|null|recordsep|tuples_only|title|tableattr|pager})
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
q quit psql
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
q quit psql
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
qecho [STRING] write string to query output stream (see
\\
o)
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
qecho [STRING] write string to query output stream (see
\\
o)
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
r reset (clear) the query buffer
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
r reset (clear) the query buffer
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
s [FILE] display history or save it to file
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
s [FILE] display history or save it to file
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
set [NAME [VALUE]] set internal variable, or list all if no parameters
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
set [NAME [VALUE]] set internal variable, or list all if no parameters
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
t show only rows (currently %s)
\n
"
),
fprintf
(
outp
ut
,
_
(
"
\\
t show only rows (currently %s)
\n
"
),
ON
(
pset
.
popt
.
topt
.
tuples_only
));
ON
(
pset
.
popt
.
topt
.
tuples_only
));
fprintf
(
fo
ut
,
_
(
"
\\
T [STRING] set HTML <table>-tag attributes, or unset if none
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
T [STRING] set HTML <table>-tag attributes, or unset if none
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
timing toggle timing of queries (currently %s)
\n
"
),
fprintf
(
outp
ut
,
_
(
"
\\
timing toggle timing of queries (currently %s)
\n
"
),
ON
(
pset
.
timing
));
ON
(
pset
.
timing
));
fprintf
(
fo
ut
,
_
(
"
\\
unset NAME unset (delete) internal variable
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
unset NAME unset (delete) internal variable
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
w [FILE] write query buffer to file
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
w [FILE] write query buffer to file
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
x toggle expanded output (currently %s)
\n
"
),
fprintf
(
outp
ut
,
_
(
"
\\
x toggle expanded output (currently %s)
\n
"
),
ON
(
pset
.
popt
.
topt
.
expanded
));
ON
(
pset
.
popt
.
topt
.
expanded
));
fprintf
(
fo
ut
,
_
(
"
\\
z [PATTERN] list table access privileges (same as
\\
dp)
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
z [PATTERN] list table access privileges (same as
\\
dp)
\n
"
));
fprintf
(
fo
ut
,
_
(
"
\\
! [COMMAND] execute command in shell or start interactive shell
\n
"
));
fprintf
(
outp
ut
,
_
(
"
\\
! [COMMAND] execute command in shell or start interactive shell
\n
"
));
if
(
usePipe
)
if
(
pagerfd
)
{
{
pclose
(
fout
);
pclose
(
pagerfd
);
#ifndef WIN32
#ifndef WIN32
pqsignal
(
SIGPIPE
,
SIG_DFL
);
pqsignal
(
SIGPIPE
,
SIG_DFL
);
#endif
#endif
...
...
src/bin/psql/help.h
View file @
91dfa1af
...
@@ -3,14 +3,14 @@
...
@@ -3,14 +3,14 @@
*
*
* Copyright 2000 by PostgreSQL Global Development Group
* Copyright 2000 by PostgreSQL Global Development Group
*
*
* $Header: /cvsroot/pgsql/src/bin/psql/help.h,v 1.
8 2001/10/28 06:25:58
momjian Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/help.h,v 1.
9 2002/07/15 01:56:25
momjian Exp $
*/
*/
#ifndef HELP_H
#ifndef HELP_H
#define HELP_H
#define HELP_H
void
usage
(
void
);
void
usage
(
void
);
void
slashUsage
(
void
);
void
slashUsage
(
bool
pager
);
void
helpSQL
(
const
char
*
topic
);
void
helpSQL
(
const
char
*
topic
);
...
...
src/bin/psql/print.c
View file @
91dfa1af
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
*
*
* Copyright 2000 by PostgreSQL Global Development Group
* Copyright 2000 by PostgreSQL Global Development Group
*
*
* $Header: /cvsroot/pgsql/src/bin/psql/print.c,v 1.2
6 2002/04/24 15:56:38 tgl
Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/print.c,v 1.2
7 2002/07/15 01:56:25 momjian
Exp $
*/
*/
#include "postgres_fe.h"
#include "postgres_fe.h"
#include "print.h"
#include "print.h"
...
@@ -23,12 +23,6 @@
...
@@ -23,12 +23,6 @@
#include "settings.h"
#include "settings.h"
#ifndef __CYGWIN__
#define DEFAULT_PAGER "more"
#else
#define DEFAULT_PAGER "less"
#endif
#ifdef HAVE_TERMIOS_H
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#include <termios.h>
#endif
#endif
...
@@ -1033,7 +1027,7 @@ printTable(const char *title,
...
@@ -1033,7 +1027,7 @@ printTable(const char *title,
{
{
const
char
*
default_footer
[]
=
{
NULL
};
const
char
*
default_footer
[]
=
{
NULL
};
unsigned
short
int
border
=
opt
->
border
;
unsigned
short
int
border
=
opt
->
border
;
FILE
*
pager
=
NULL
,
FILE
*
pager
fd
=
NULL
,
*
output
;
*
output
;
...
@@ -1090,15 +1084,15 @@ printTable(const char *title,
...
@@ -1090,15 +1084,15 @@ printTable(const char *title,
pagerprog
=
getenv
(
"PAGER"
);
pagerprog
=
getenv
(
"PAGER"
);
if
(
!
pagerprog
)
if
(
!
pagerprog
)
pagerprog
=
DEFAULT_PAGER
;
pagerprog
=
DEFAULT_PAGER
;
pager
=
popen
(
pagerprog
,
"w"
);
pager
fd
=
popen
(
pagerprog
,
"w"
);
#ifdef TIOCGWINSZ
#ifdef TIOCGWINSZ
}
}
#endif
#endif
}
}
if
(
pager
)
if
(
pager
fd
)
{
{
output
=
pager
;
output
=
pager
fd
;
#ifndef WIN32
#ifndef WIN32
pqsignal
(
SIGPIPE
,
SIG_IGN
);
pqsignal
(
SIGPIPE
,
SIG_IGN
);
#endif
#endif
...
@@ -1139,13 +1133,12 @@ printTable(const char *title,
...
@@ -1139,13 +1133,12 @@ printTable(const char *title,
fprintf
(
stderr
,
"+ Oops, you shouldn't see this!
\n
"
);
fprintf
(
stderr
,
"+ Oops, you shouldn't see this!
\n
"
);
}
}
if
(
pager
)
if
(
pager
fd
)
{
{
pclose
(
pager
);
pclose
(
pager
fd
);
#ifndef WIN32
#ifndef WIN32
pqsignal
(
SIGPIPE
,
SIG_DFL
);
pqsignal
(
SIGPIPE
,
SIG_DFL
);
#endif
#endif
}
}
}
}
...
...
src/bin/psql/print.h
View file @
91dfa1af
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
*
*
* Copyright 2000 by PostgreSQL Global Development Group
* Copyright 2000 by PostgreSQL Global Development Group
*
*
* $Header: /cvsroot/pgsql/src/bin/psql/print.h,v 1.1
2 2001/11/05 17:46:31
momjian Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/print.h,v 1.1
3 2002/07/15 01:56:25
momjian Exp $
*/
*/
#ifndef PRINT_H
#ifndef PRINT_H
#define PRINT_H
#define PRINT_H
...
@@ -72,7 +72,12 @@ typedef struct _printQueryOpt
...
@@ -72,7 +72,12 @@ typedef struct _printQueryOpt
*
*
* It calls the printTable above with all the things set straight.
* It calls the printTable above with all the things set straight.
*/
*/
void
void
printQuery
(
const
PGresult
*
result
,
const
printQueryOpt
*
opt
,
FILE
*
fout
);
printQuery
(
const
PGresult
*
result
,
const
printQueryOpt
*
opt
,
FILE
*
fout
);
#ifndef __CYGWIN__
#define DEFAULT_PAGER "more"
#else
#define DEFAULT_PAGER "less"
#endif
#endif
/* PRINT_H */
#endif
/* PRINT_H */
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