Skip to content

Commit 2e9010c

Browse files
committed
Renamed createdb.l to create_database.l.
Changed portal to cursor.
1 parent 4bec96f commit 2e9010c

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

doc/man/createdb.l renamed to doc/man/create_database.l

Lines changed: 1 addition & 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/doc/man/Attic/createdb.l,v 1.1.1.1 1996/08/18 22:14:22 scrappy Exp $
3+
.\" $Header: /cvsroot/pgsql/doc/man/Attic/create_database.l,v 1.1 1996/10/03 15:49:34 momjian Exp $
44
.TH "CREATE DATABASE" SQL 11/05/95 Postgres95 Postgres95
55
.SH NAME
66
create database \(em create a new database

doc/man/fetch.l

Lines changed: 5 additions & 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/doc/man/Attic/fetch.l,v 1.1.1.1 1996/08/18 22:14:24 scrappy Exp $
3+
.\" $Header: /cvsroot/pgsql/doc/man/Attic/fetch.l,v 1.2 1996/10/03 15:49:53 momjian Exp $
44
.TH FETCH SQL 01/23/93 Postgres95 Postgres95
55
.SH NAME
66
fetch \(em fetch instance(s) from a cursor
@@ -31,7 +31,7 @@ cursor updates back to base classes is impossible in general as with
3131
view updates. Consequently, users must issue explicit replace
3232
commands to update data.
3333
.PP
34-
Portals may only be used inside of transaction blocks marked by
34+
Cursors may only be used inside of transaction blocks marked by
3535
.IR begin (l)
3636
and
3737
.IR end (l)
@@ -42,19 +42,19 @@ because the data that they store spans multiple user queries.
4242
--set up and use a cursor
4343
--
4444
begin
45-
declare myportal cursor for
45+
declare mycursor cursor for
4646
select * from pg-user
4747
end
4848
.fi
4949
.nf
5050
--
51-
--Fetch all the instances available in the portal FOO
51+
--Fetch all the instances available in the cursor FOO
5252
--
5353
fetch all in FOO
5454
.fi
5555
.nf
5656
--
57-
--Fetch 5 instances backward in the portal FOO
57+
--Fetch 5 instances backward in the cursor FOO
5858
--
5959
fetch backward 5 in FOO
6060
.fi

doc/man/libpq.3

Lines changed: 6 additions & 6 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/doc/man/Attic/libpq.3,v 1.1.1.1 1996/08/18 22:14:25 scrappy Exp $
3+
.\" $Header: /cvsroot/pgsql/doc/man/Attic/libpq.3,v 1.2 1996/10/03 15:50:10 momjian Exp $
44
.TH LIBPQ INTRO 03/12/94 Postgres95 Postgres95
55
.SH DESCRIPTION
66
Libpq is the programmer's interface to Postgres. Libpq is a set of
@@ -665,15 +665,15 @@ main()
665665
PQclear(res);
666666

667667
/* fetch instances from the pg_database, the system catalog of databases*/
668-
res = PQexec(conn,"DECLARE myportal CURSOR FOR select * from pg_database");
668+
res = PQexec(conn,"DECLARE mycursor CURSOR FOR select * from pg_database");
669669
if (PQresultStatus(res) != PGRES_COMMAND_OK) {
670670
fprintf(stderr,"DECLARE CURSOR command failed\n");
671671
PQclear(res);
672672
exit_nicely(conn);
673673
}
674674
PQclear(res);
675675

676-
res = PQexec(conn,"FETCH ALL in myportal");
676+
res = PQexec(conn,"FETCH ALL in mycursor");
677677
if (PQresultStatus(res) != PGRES_TUPLES_OK) {
678678
fprintf(stderr,"FETCH ALL command didn't return tuples properly\n");
679679
PQclear(res);
@@ -697,8 +697,8 @@ main()
697697

698698
PQclear(res);
699699

700-
/* close the portal */
701-
res = PQexec(conn, "CLOSE myportal");
700+
/* close the cursor */
701+
res = PQexec(conn, "CLOSE mycursor");
702702
PQclear(res);
703703

704704
/* end the transaction */
@@ -947,7 +947,7 @@ main()
947947

948948
PQclear(res);
949949

950-
/* close the portal */
950+
/* close the cursor */
951951
res = PQexec(conn, "CLOSE mycursor");
952952
PQclear(res);
953953

0 commit comments

Comments
 (0)