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
0acd843c
Commit
0acd843c
authored
Jun 08, 2001
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finish German translation, edit (original) messages a bit.
parent
959dc927
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
240 additions
and
203 deletions
+240
-203
src/bin/psql/command.c
src/bin/psql/command.c
+4
-4
src/bin/psql/common.c
src/bin/psql/common.c
+2
-2
src/bin/psql/de.po
src/bin/psql/de.po
+187
-149
src/bin/psql/help.c
src/bin/psql/help.c
+47
-48
No files found.
src/bin/psql/command.c
View file @
0acd843c
...
...
@@ -3,7 +3,7 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.5
5 2001/06/02 18:25:17
petere Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.5
6 2001/06/08 23:53:48
petere Exp $
*/
#include "postgres_fe.h"
#include "command.h"
...
...
@@ -149,7 +149,7 @@ HandleSlashCmds(const char *line,
#if 0 /* turned out to be too annoying */
if (status != CMD_UNKNOWN && isalpha((unsigned char) new_cmd[0]))
psql_error("Warning:
this syntax is deprecated
\n");
psql_error("Warning:
This syntax is deprecated.
\n");
#endif
}
...
...
@@ -442,7 +442,7 @@ exec_command(const char *cmd,
SetVariable
(
pset
.
vars
,
"ENCODING"
,
pg_encoding_to_char
(
pset
.
encoding
));
}
#else
psql_error
(
"
\\
%s: multi
-
byte support is not enabled
\n
"
,
cmd
);
psql_error
(
"
\\
%s: multibyte support is not enabled
\n
"
,
cmd
);
#endif
free
(
encoding
);
}
...
...
@@ -1483,7 +1483,7 @@ do_edit(const char *filename_arg, PQExpBuffer query_buf)
if
(
fd
==
-
1
||
!
stream
)
{
psql_error
(
"could
n't open temp
file %s: %s
\n
"
,
fname
,
strerror
(
errno
));
psql_error
(
"could
not open temporary
file %s: %s
\n
"
,
fname
,
strerror
(
errno
));
error
=
true
;
}
else
...
...
src/bin/psql/common.c
View file @
0acd843c
...
...
@@ -3,7 +3,7 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.3
3 2001/06/02 18:25:1
8 petere Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/common.c,v 1.3
4 2001/06/08 23:53:4
8 petere Exp $
*/
#include "postgres_fe.h"
...
...
@@ -528,7 +528,7 @@ SendQuery(const char *query)
/* check for asynchronous notification returns */
while
((
notify
=
PQnotifies
(
pset
.
db
))
!=
NULL
)
{
fprintf
(
pset
.
queryFout
,
gettext
(
"Asynchronous NOTIFY '%s' from backend with pid
'%d'
received.
\n
"
),
fprintf
(
pset
.
queryFout
,
gettext
(
"Asynchronous NOTIFY '%s' from backend with pid
%d
received.
\n
"
),
notify
->
relname
,
notify
->
be_pid
);
free
(
notify
);
fflush
(
pset
.
queryFout
);
...
...
src/bin/psql/de.po
View file @
0acd843c
This diff is collapsed.
Click to expand it.
src/bin/psql/help.c
View file @
0acd843c
...
...
@@ -3,7 +3,7 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
* $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.
39 2001/06/02 18:25:1
8 petere Exp $
* $Header: /cvsroot/pgsql/src/bin/psql/help.c,v 1.
40 2001/06/08 23:53:4
8 petere Exp $
*/
#include "postgres_fe.h"
#include "help.h"
...
...
@@ -82,50 +82,50 @@ usage(void)
puts
(
_
(
"Options:"
));
puts
(
_
(
" -a Echo all input from script"
));
puts
(
_
(
" -A Unaligned table output mode (-P format=unaligned)"
));
puts
(
_
(
" -c
<query> Run only single query (or slash command
) and exit"
));
puts
(
_
(
" -c
COMMAND Run only single command (SQL or interal
) and exit"
));
/* Display default database */
env
=
getenv
(
"PGDATABASE"
);
if
(
!
env
)
env
=
user
;
printf
(
_
(
" -d
<dbname>
Specify database name to connect to (default: %s)
\n
"
),
env
);
printf
(
_
(
" -d
DBNAME
Specify database name to connect to (default: %s)
\n
"
),
env
);
puts
(
_
(
" -e Echo
queries sent to backend
"
));
puts
(
_
(
" -e Echo
commands sent to server
"
));
puts
(
_
(
" -E Display queries that internal commands generate"
));
puts
(
_
(
" -f
<filename> Execute querie
s from file, then exit"
));
printf
(
_
(
" -F
<string>
Set field separator (default:
\"
%s
\"
) (-P fieldsep=)
\n
"
),
puts
(
_
(
" -f
FILENAME Execute command
s from file, then exit"
));
printf
(
_
(
" -F
STRING
Set field separator (default:
\"
%s
\"
) (-P fieldsep=)
\n
"
),
DEFAULT_FIELD_SEP
);
/* Display default host */
env
=
getenv
(
"PGHOST"
);
printf
(
_
(
" -h
<host>
Specify database server host (default: %s)
\n
"
),
printf
(
_
(
" -h
HOSTNAME
Specify database server host (default: %s)
\n
"
),
env
?
env
:
_
(
"local socket"
));
puts
(
_
(
" -H HTML table output mode (-P format=html)"
));
puts
(
_
(
" -l List available databases, then exit"
));
puts
(
_
(
" -n Disable
readline
"
));
puts
(
_
(
" -o
<filename> Send query output to filenam
e (or |pipe)"
));
puts
(
_
(
" -n Disable
enhanced command line editing (readline)
"
));
puts
(
_
(
" -o
FILENAME Send query results to fil
e (or |pipe)"
));
/* Display default port */
env
=
getenv
(
"PGPORT"
);
printf
(
_
(
" -p
<port>
Specify database server port (default: %s)
\n
"
),
printf
(
_
(
" -p
PORT
Specify database server port (default: %s)
\n
"
),
env
?
env
:
DEF_PGPORT_STR
);
puts
(
_
(
" -P
var[=arg] Set printing option 'var' to 'arg
' (see
\\
pset command)"
));
puts
(
_
(
" -P
VAR[=ARG] Set printing option 'VAR' to 'ARG
' (see
\\
pset command)"
));
puts
(
_
(
" -q Run quietly (no messages, only query output)"
));
puts
(
_
(
" -R
<string>
Set record separator (default: newline) (-P recordsep=)"
));
puts
(
_
(
" -R
STRING
Set record separator (default: newline) (-P recordsep=)"
));
puts
(
_
(
" -s Single step mode (confirm each query)"
));
puts
(
_
(
" -S Single line mode (
newline terminates query
)"
));
puts
(
_
(
" -S Single line mode (
end of line terminates SQL command
)"
));
puts
(
_
(
" -t Print rows only (-P tuples_only)"
));
puts
(
_
(
" -T
text Set HTML table tag option
s (width, border) (-P tableattr=)"
));
puts
(
_
(
" -T
TEXT Set HTML table tag attribute
s (width, border) (-P tableattr=)"
));
/* Display default user */
env
=
getenv
(
"PGUSER"
);
if
(
!
env
)
env
=
user
;
printf
(
_
(
" -U
<username> Specify database user
name (default: %s)
\n
"
),
env
);
printf
(
_
(
" -U
NAME Specify database user
name (default: %s)
\n
"
),
env
);
puts
(
_
(
" -v
name=val Set psql variable 'name' to 'value
'"
));
puts
(
_
(
" -v
NAME=VALUE Set psql variable 'NAME' to 'VALUE
'"
));
puts
(
_
(
" -V Show version information and exit"
));
puts
(
_
(
" -W Prompt for password (should happen automatically)"
));
puts
(
_
(
" -x Turn on expanded table output (-P expanded)"
));
...
...
@@ -134,8 +134,7 @@ usage(void)
puts
(
_
(
"
\n
For more information, type
\"\\
?
\"
(for internal commands) or
\"\\
help
\"\n
"
"(for SQL commands) from within psql, or consult the psql section in
\n
"
"the PostgreSQL manual, which accompanies the distribution and is also
\n
"
"available at <http://www.postgresql.org>.
\n\n
"
"the PostgreSQL documentation.
\n\n
"
"Report bugs to <pgsql-bugs@postgresql.org>."
));
}
...
...
@@ -192,52 +191,52 @@ slashUsage(void)
fout
=
stdout
;
/* if you add/remove a line here, change the row test above */
fprintf
(
fout
,
_
(
"
\\
a toggle between unaligned and aligned mode
\n
"
));
fprintf
(
fout
,
_
(
"
\\
c[onnect] [
dbname|- [user
]]
\n
"
" connect to new database (currently
'%s'
)
\n
"
),
fprintf
(
fout
,
_
(
"
\\
a toggle between unaligned and aligned
output
mode
\n
"
));
fprintf
(
fout
,
_
(
"
\\
c[onnect] [
DBNAME|- [USER
]]
\n
"
" connect to new database (currently
\"
%s
\"
)
\n
"
),
PQdb
(
pset
.
db
));
fprintf
(
fout
,
_
(
"
\\
C
<title>
table title
\n
"
));
fprintf
(
fout
,
_
(
"
\\
cd [
<dir>]
change the current working directory
\n
"
));
fprintf
(
fout
,
_
(
"
\\
copy ... perform SQL COPY with data stream to the client
machine
\n
"
));
fprintf
(
fout
,
_
(
"
\\
C
TITLE set
table title
\n
"
));
fprintf
(
fout
,
_
(
"
\\
cd [
DIRNAME]
change the current working directory
\n
"
));
fprintf
(
fout
,
_
(
"
\\
copy ... perform SQL COPY with data stream to the client
host
\n
"
));
fprintf
(
fout
,
_
(
"
\\
copyright show PostgreSQL usage and distribution terms
\n
"
));
fprintf
(
fout
,
_
(
"
\\
d
<table>
describe table (or view, index, sequence)
\n
"
));
fprintf
(
fout
,
_
(
"
\\
d{t|i|s|v}
list tables/indices/sequences/views
\n
"
));
fprintf
(
fout
,
_
(
"
\\
d{p|S|l} list
permissions/system tables/l
objects
\n
"
));
fprintf
(
fout
,
_
(
"
\\
da list aggregates
\n
"
));
fprintf
(
fout
,
_
(
"
\\
dd
[object] list
comment for table, type, function, or operator
\n
"
));
fprintf
(
fout
,
_
(
"
\\
d
TABLE
describe table (or view, index, sequence)
\n
"
));
fprintf
(
fout
,
_
(
"
\\
d{t|i|s|v}
...
list tables/indices/sequences/views
\n
"
));
fprintf
(
fout
,
_
(
"
\\
d{p|S|l} list
access privileges, system tables, or large
objects
\n
"
));
fprintf
(
fout
,
_
(
"
\\
da list aggregate
function
s
\n
"
));
fprintf
(
fout
,
_
(
"
\\
dd
NAME show
comment for table, type, function, or operator
\n
"
));
fprintf
(
fout
,
_
(
"
\\
df list functions
\n
"
));
fprintf
(
fout
,
_
(
"
\\
do list operators
\n
"
));
fprintf
(
fout
,
_
(
"
\\
dT list data types
\n
"
));
fprintf
(
fout
,
_
(
"
\\
e
[file] edit the current query buffer or [file]
with external editor
\n
"
));
fprintf
(
fout
,
_
(
"
\\
echo
<text> write text to stdo
ut
\n
"
));
fprintf
(
fout
,
_
(
"
\\
encoding
<encoding>
set client encoding
\n
"
));
fprintf
(
fout
,
_
(
"
\\
f
<sep> change
field separator
\n
"
));
fprintf
(
fout
,
_
(
"
\\
g
[file] send query to backend (and results in [file]
or |pipe)
\n
"
));
fprintf
(
fout
,
_
(
"
\\
h
[cmd] help on syntax of sql
commands, * for all commands
\n
"
));
fprintf
(
fout
,
_
(
"
\\
H toggle HTML mode (currently %s)
\n
"
),
fprintf
(
fout
,
_
(
"
\\
e
FILENAME edit the current query buffer or file
with external editor
\n
"
));
fprintf
(
fout
,
_
(
"
\\
echo
TEXT write text to standard outp
ut
\n
"
));
fprintf
(
fout
,
_
(
"
\\
encoding
ENCODING
set client encoding
\n
"
));
fprintf
(
fout
,
_
(
"
\\
f
STRING set
field separator
\n
"
));
fprintf
(
fout
,
_
(
"
\\
g
FILENAME send SQL command to server (and write results to file
or |pipe)
\n
"
));
fprintf
(
fout
,
_
(
"
\\
h
NAME help on syntax of SQL
commands, * for all commands
\n
"
));
fprintf
(
fout
,
_
(
"
\\
H toggle HTML
output
mode (currently %s)
\n
"
),
ON
(
pset
.
popt
.
topt
.
format
==
PRINT_HTML
));
fprintf
(
fout
,
_
(
"
\\
i
<file> read and execute queries from <file>
\n
"
));
fprintf
(
fout
,
_
(
"
\\
i
FILENAME execute commands from file
\n
"
));
fprintf
(
fout
,
_
(
"
\\
l list all databases
\n
"
));
fprintf
(
fout
,
_
(
"
\\
lo_export,
\\
lo_import,
\\
lo_list,
\\
lo_unlink
\n
"
" large object operations
\n
"
));
fprintf
(
fout
,
_
(
"
\\
o
[file] send all query results to [file],
or |pipe
\n
"
));
fprintf
(
fout
,
_
(
"
\\
o
FILENAME send all query results to file
or |pipe
\n
"
));
fprintf
(
fout
,
_
(
"
\\
p show the content of the current query buffer
\n
"
));
fprintf
(
fout
,
_
(
"
\\
pset
<opt> set table output <opt> = {format|border|expanded|fieldsep
|
\n
"
"
null|recordsep|tuples_only|title|tableattr|pager}
\n
"
));
fprintf
(
fout
,
_
(
"
\\
pset
VAR set table output option (VAR := {format|border|expanded
|
\n
"
"
fieldsep|null|recordsep|tuples_only|title|tableattr|pager})
\n
"
));
fprintf
(
fout
,
_
(
"
\\
q quit psql
\n
"
));
fprintf
(
fout
,
_
(
"
\\
qecho
<text>
write text to query output stream (see
\\
o)
\n
"
));
fprintf
(
fout
,
_
(
"
\\
qecho
TEXT
write text to query output stream (see
\\
o)
\n
"
));
fprintf
(
fout
,
_
(
"
\\
r reset (clear) the query buffer
\n
"
));
fprintf
(
fout
,
_
(
"
\\
s
[file] print history or save it in [file]
\n
"
));
fprintf
(
fout
,
_
(
"
\\
set
<var> <value>
set internal variable
\n
"
));
fprintf
(
fout
,
_
(
"
\\
s
FILENAME print history or save it to file
\n
"
));
fprintf
(
fout
,
_
(
"
\\
set
NAME VALUE
set internal variable
\n
"
));
fprintf
(
fout
,
_
(
"
\\
t show only rows (currently %s)
\n
"
),
ON
(
pset
.
popt
.
topt
.
tuples_only
));
fprintf
(
fout
,
_
(
"
\\
T
<tags> HTML table tag
s
\n
"
));
fprintf
(
fout
,
_
(
"
\\
unset
<var>
unset (delete) internal variable
\n
"
));
fprintf
(
fout
,
_
(
"
\\
w
<file> write current query buffer to a <file>
\n
"
));
fprintf
(
fout
,
_
(
"
\\
T
TEXT set HTML table tag attribute
s
\n
"
));
fprintf
(
fout
,
_
(
"
\\
unset
NAME
unset (delete) internal variable
\n
"
));
fprintf
(
fout
,
_
(
"
\\
w
FILENAME write current query buffer to file
\n
"
));
fprintf
(
fout
,
_
(
"
\\
x toggle expanded output (currently %s)
\n
"
),
ON
(
pset
.
popt
.
topt
.
expanded
));
fprintf
(
fout
,
_
(
"
\\
z list table access p
ermission
s
\n
"
));
fprintf
(
fout
,
_
(
"
\\
! [
cmd] shell escape or command
\n
"
));
fprintf
(
fout
,
_
(
"
\\
z list table access p
rivilege
s
\n
"
));
fprintf
(
fout
,
_
(
"
\\
! [
COMMAND] execute command in shell or start interactive shell
\n
"
));
if
(
usePipe
)
{
...
...
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