Skip to content

Commit 817fc4b

Browse files
committed
Manual page fixes.
1 parent 137d342 commit 817fc4b

File tree

10 files changed

+41
-41
lines changed

10 files changed

+41
-41
lines changed

src/man/abort.l

+2-2
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/abort.l,v 1.3 1998/01/11 22:17:01 momjian Exp $
3+
.\" $Header: /cvsroot/pgsql/src/man/Attic/abort.l,v 1.4 1998/03/23 15:09:22 momjian Exp $
44
.TH ABORT SQL 01/23/93 PostgreSQL PostgreSQL
55
.\" XXX This .XA has to go after the .TH so that the index page number goes
66
.\" in the right place...
@@ -19,5 +19,5 @@ is functionally equivalent to
1919
.IR "rollback".
2020
.SH "SEE ALSO"
2121
begin(l),
22-
end(l),
22+
commit(l),
2323
rollback(l).

src/man/begin.l

+2-2
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/begin.l,v 1.3 1998/01/11 22:17:05 momjian Exp $
3+
.\" $Header: /cvsroot/pgsql/src/man/Attic/begin.l,v 1.4 1998/03/23 15:09:23 momjian Exp $
44
.TH BEGIN SQL 11/05/95 PostgreSQL PostgreSQL
55
.SH NAME
66
begin - begins a transaction
@@ -17,4 +17,4 @@ them are done. Transactions have the standard ACID (atomic,
1717
consistent, isolatable, and durable) property.
1818
.SH "SEE ALSO"
1919
abort(l),
20-
end(l).
20+
commit(l).

src/man/commit.l

+2-2
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/commit.l,v 1.3 1998/01/11 22:17:10 momjian Exp $
3+
.\" $Header: /cvsroot/pgsql/src/man/Attic/commit.l,v 1.4 1998/03/23 15:09:25 momjian Exp $
44
.TH COMMIT SQL 01/23/93 PostgreSQL PostgreSQL
55
.SH NAME
66
commit - commit the current transaction
@@ -19,5 +19,5 @@ command
1919
.SH "SEE ALSO"
2020
abort(l),
2121
begin(l),
22-
end(l),
22+
commit(l),
2323
rollback(l).

src/man/declare.l

+2-2
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/declare.l,v 1.3 1998/01/22 23:05:18 momjian Exp $
3+
.\" $Header: /cvsroot/pgsql/src/man/Attic/declare.l,v 1.4 1998/03/23 15:09:26 momjian Exp $
44
.TH FETCH SQL 01/23/93 PostgreSQL PostgreSQL
55
.SH NAME
66
declare - declare a cursor
@@ -35,5 +35,5 @@ For an example, see the fetch(l) manual page.
3535
.SH "SEE ALSO"
3636
fetch(l),
3737
begin(l),
38-
end(l),
38+
commit(l),
3939
select(l).

src/man/fetch.l

+10-10
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.5 1998/01/11 22:17:35 momjian Exp $
3+
.\" $Header: /cvsroot/pgsql/src/man/Attic/fetch.l,v 1.6 1998/03/23 15:09:29 momjian Exp $
44
.TH FETCH SQL 01/23/93 PostgreSQL PostgreSQL
55
.SH NAME
66
fetch - fetch instance(s) from a cursor
@@ -34,33 +34,33 @@ commands to update data.
3434
Cursors may only be used inside of transaction blocks marked by
3535
.IR begin (l)
3636
and
37-
.IR end (l)
37+
.IR commit (l)
3838
because the data that they store spans multiple user queries.
3939
.SH EXAMPLE
4040
.nf
4141
--
4242
--set up and use a cursor
4343
--
44-
begin
45-
declare mycursor cursor for
46-
select * from pg-user;
44+
begin work;
45+
declare mycursor cursor for
46+
select * from pg-user;
4747
--
4848
--Fetch all the instances available in the cursor FOO
4949
--
50-
fetch all in FOO;
50+
fetch all in FOO;
5151
--
5252
--Fetch 5 instances backward in the cursor FOO
5353
--
54-
fetch backward 5 in FOO;
54+
fetch backward 5 in FOO;
5555
--
5656
--close
5757
--
58-
close foo;
59-
end;
58+
close foo;
59+
commit;
6060
.fi
6161
.SH "SEE ALSO"
6262
begin(l),
63-
end(l),
63+
commit(l),
6464
close(l),
6565
move(l),
6666
select(l).

src/man/large_objects.3

+4-4
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/large_objects.3,v 1.5 1998/01/11 22:17:41 momjian Exp $
3+
.\" $Header: /cvsroot/pgsql/src/man/Attic/large_objects.3,v 1.6 1998/03/23 15:09:29 momjian Exp $
44
.TH "LARGE OBJECTS" INTRO 03/18/94 PostgreSQL PostgreSQL
55
.SH DESCRIPTION
66
.PP
@@ -259,7 +259,7 @@ library.
259259
*
260260
*
261261
* IDENTIFICATION
262-
* $Header: /cvsroot/pgsql/src/man/Attic/large_objects.3,v 1.5 1998/01/11 22:17:41 momjian Exp $
262+
* $Header: /cvsroot/pgsql/src/man/Attic/large_objects.3,v 1.6 1998/03/23 15:09:29 momjian Exp $
263263
*
264264
*-------------------------------------------------------------------------
265265
*/
@@ -458,7 +458,7 @@ main(int argc, char **argv)
458458
exit_nicely(conn);
459459
}
460460

461-
res = PQexec(conn, "begin");
461+
res = PQexec(conn, "begin work;");
462462
PQclear(res);
463463
printf("importing file \\"%s\\" ...\\n", in_filename);
464464
/* lobjOid = importFile(conn, in_filename); */
@@ -477,7 +477,7 @@ main(int argc, char **argv)
477477
/* exportFile(conn, lobjOid, out_filename); */
478478
lo_export(conn, lobjOid,out_filename);
479479

480-
res = PQexec(conn, "end");
480+
res = PQexec(conn, "commit;");
481481
PQclear(res);
482482
PQfinish(conn);
483483
exit(0);

src/man/libpq.3

+5-5
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/libpq.3,v 1.12 1998/01/26 01:42:47 scrappy Exp $
3+
.\" $Header: /cvsroot/pgsql/src/man/Attic/libpq.3,v 1.13 1998/03/23 15:09:30 momjian Exp $
44
.TH LIBPQ INTRO 03/12/94 PostgreSQL PostgreSQL
55
.SH DESCRIPTION
66
Libpq is the programmer's interface to Postgres. Libpq is a set of
@@ -735,8 +735,8 @@ main()
735735
res = PQexec(conn, "CLOSE mycursor");
736736
PQclear(res);
737737

738-
/* end the transaction */
739-
res = PQexec(conn, "END");
738+
/* commit the transaction */
739+
res = PQexec(conn, "COMMIT");
740740
PQclear(res);
741741

742742
/* close the connection to the database and cleanup */
@@ -985,8 +985,8 @@ main()
985985
res = PQexec(conn, "CLOSE mycursor");
986986
PQclear(res);
987987

988-
/* end the transaction */
989-
res = PQexec(conn, "END");
988+
/* commit the transaction */
989+
res = PQexec(conn, "COMMIT");
990990
PQclear(res);
991991

992992
/* close the connection to the database and cleanup */

src/man/lock.l

+3-3
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/lock.l,v 1.4 1998/03/18 15:48:57 momjian Exp $
3+
.\" $Header: /cvsroot/pgsql/src/man/Attic/lock.l,v 1.5 1998/03/23 15:09:34 momjian Exp $
44
.TH FETCH SQL 01/23/93 PostgreSQL PostgreSQL
55
.SH NAME
66
lock - exclusive lock a table
@@ -34,8 +34,8 @@ begin work;
3434
lock table mytable;
3535
select * from mytable;
3636
update mytable set (x = 100);
37-
end work;
37+
commit;
3838
.SH "SEE ALSO"
3939
begin(l),
40-
end(l),
40+
commit(l),
4141
select(l).

src/man/move.l

+9-9
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/move.l,v 1.2 1998/01/11 22:17:44 momjian Exp $
3+
.\" $Header: /cvsroot/pgsql/src/man/Attic/move.l,v 1.3 1998/03/23 15:09:41 momjian Exp $
44
.TH MOVE SQL 01/23/93 PostgreSQL PostgreSQL
55
.SH NAME
66
move - move cursor position
@@ -19,26 +19,26 @@ command: it fetches instances, but put them nowhere.
1919
--
2020
--set up and use a cursor
2121
--
22-
begin
23-
declare mycursor cursor for
24-
select * from pg-user;
22+
begin work;
23+
declare mycursor cursor for
24+
select * from pg-user;
2525
--
2626
--Move for 5 instances in the cursor FOO
2727
--
28-
move 5 in FOO;
28+
move 5 in FOO;
2929
--
3030
--Fetch 6th instance in the cursor FOO
3131
--
32-
fetch 1 in FOO;
32+
fetch 1 in FOO;
3333
--
3434
--close
3535
--
36-
close foo;
37-
end;
36+
close foo;
37+
commit;
3838
.fi
3939
.SH "SEE ALSO"
4040
begin(l),
41-
end(l),
41+
commit(l),
4242
close(l),
4343
fetch(l),
4444
select(l).

src/man/rollback.l

+2-2
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/rollback.l,v 1.3 1998/01/11 22:17:57 momjian Exp $
3+
.\" $Header: /cvsroot/pgsql/src/man/Attic/rollback.l,v 1.4 1998/03/23 15:09:43 momjian Exp $
44
.TH ROLLBACK SQL 01/20/96 PostgreSQL PostgreSQL
55
.\" XXX This .XA has to go after the .TH so that the index page number goes
66
.\" in the right place...
@@ -21,4 +21,4 @@ command.
2121
.SH "SEE ALSO"
2222
abort(l),
2323
begin(l),
24-
end(l).
24+
commit(l).

0 commit comments

Comments
 (0)