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

Commit4f523a6

Browse files
committed
Manual page updates.
1 parent108baf7 commit4f523a6

File tree

3 files changed

+47
-6
lines changed

3 files changed

+47
-6
lines changed

‎src/man/declare.l

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
.\" This is -*-nroff-*-
2+
.\" XXX standard disclaimer belongs here....
3+
.\" $Header: /cvsroot/pgsql/src/man/Attic/declare.l,v 1.1 1997/09/08 17:49:41 momjian Exp $
4+
.TH FETCH SQL 01/23/93 PostgreSQL PostgreSQL
5+
.SH NAME
6+
declere\(em declare a cursor
7+
.SH SYNOPSIS
8+
.nf
9+
\fBdeclare\fR [\fBbinary\fR ]\fBcursorfor\fR select statement
10+
.fi
11+
.SH DESCRIPTION
12+
.BR Declare
13+
allows a user to create cursors.
14+
Cursors are only available in transactions.
15+
.PP
16+
Normal cursors return data back in ASCII format. Since data is stored
17+
natively in binary format, the system must do a conversion to produce
18+
the ASCII format. In addition, ASCII formats are often larger in size
19+
than binary format. Once the attributes come back in ASCII, often the
20+
client application then has to convert it to a binary format to
21+
manipulate it anyway.
22+
.PP
23+
\fBBinary\fR cursors give you back the data in the native binary
24+
representation. Thus, binary cursors will tend to be a little faster
25+
since there's less overhead of conversion.
26+
.PP
27+
However, ASCII is architectural neutral whereas binary representation
28+
can differ between different machine architecture. Thus, if your client
29+
machine uses a different representation than you server machine, getting
30+
back attributes in binary format is probably not what you want. Also, if
31+
your main purpose is displaying the data in ASCII, then getting it back
32+
in ASCII will save you some effort on the client side.
33+
.PP
34+
For an example, see the fetch(l) manual page.
35+
.SH "SEE ALSO"
36+
fetch(l),
37+
begin(l),
38+
end(l),
39+
select(l).

‎src/man/fetch.l

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" This is -*-nroff-*-
22
.\" XXX standard disclaimer belongs here....
3-
.\" $Header: /cvsroot/pgsql/src/man/Attic/fetch.l,v 1.3 1997/03/01 15:26:42 momjian Exp $
3+
.\" $Header: /cvsroot/pgsql/src/man/Attic/fetch.l,v 1.4 1997/09/08 17:49:41 momjian Exp $
44
.TH FETCH SQL 01/23/93 PostgreSQL PostgreSQL
55
.SH NAME
66
fetch\(em fetch instance(s) from a cursor
@@ -64,7 +64,3 @@ end(l),
6464
close(l),
6565
move(l),
6666
select(l).
67-
.SH BUGS
68-
Currently, the smallest transaction in Postgres is a single SQL
69-
command. It should be possible for a single fetch to be a
70-
transaction.

‎src/man/vacuum.l

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" This is -*-nroff-*-
22
.\" XXX standard disclaimer belongs here....
3-
.\" $Header: /cvsroot/pgsql/src/man/Attic/vacuum.l,v 1.4 1997/05/13 04:41:54 momjian Exp $
3+
.\" $Header: /cvsroot/pgsql/src/man/Attic/vacuum.l,v 1.5 1997/09/08 17:49:43 momjian Exp $
44
.TH VACUUM SQL 11/05/95 PostgreSQL PostgreSQL
55
.SH NAME
66
vacuum\(em vacuum a database
@@ -40,5 +40,11 @@ choices in planning user queries.
4040
.PP
4141
The purge(l) command can be used to control the archive retention
4242
characteristics of a given table.
43+
.PP
44+
If the server crashes during a vacuum command, chances are it will leave
45+
a lock file hanging around. Attempts to re-run the vacuum command
46+
result in an error message about the creation of a lock file. If you
47+
are sure vacuum is not running, remove the pg_vlock file in your
48+
database directory(i.e. data/base/dbname/pg_vlock).
4349
.SH "SEE ALSO"
4450
purge(l).

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp