aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1996-10-03 15:50:10 +0000
committerBruce Momjian <bruce@momjian.us>1996-10-03 15:50:10 +0000
commit2e9010cd8aee2fab1c5be8bed7a93ee6fbc84e9b (patch)
tree8a5ade8b27a697a899c826ffb21d8da9a377deea
parent4bec96f16f48f034ac4d39cb272ee6c228d05193 (diff)
downloadpostgresql-2e9010cd8aee2fab1c5be8bed7a93ee6fbc84e9b.tar.gz
postgresql-2e9010cd8aee2fab1c5be8bed7a93ee6fbc84e9b.zip
Renamed createdb.l to create_database.l.
Changed portal to cursor.
-rw-r--r--doc/man/create_database.l (renamed from doc/man/createdb.l)2
-rw-r--r--doc/man/fetch.l10
-rw-r--r--doc/man/libpq.312
3 files changed, 12 insertions, 12 deletions
diff --git a/doc/man/createdb.l b/doc/man/create_database.l
index 6de86972d51..d77f753add6 100644
--- a/doc/man/createdb.l
+++ b/doc/man/create_database.l
@@ -1,6 +1,6 @@
.\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/doc/man/Attic/createdb.l,v 1.1.1.1 1996/08/18 22:14:22 scrappy Exp $
+.\" $Header: /cvsroot/pgsql/doc/man/Attic/create_database.l,v 1.1 1996/10/03 15:49:34 momjian Exp $
.TH "CREATE DATABASE" SQL 11/05/95 Postgres95 Postgres95
.SH NAME
create database \(em create a new database
diff --git a/doc/man/fetch.l b/doc/man/fetch.l
index c5a867ac45e..8e9aadcdc53 100644
--- a/doc/man/fetch.l
+++ b/doc/man/fetch.l
@@ -1,6 +1,6 @@
.\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/doc/man/Attic/fetch.l,v 1.1.1.1 1996/08/18 22:14:24 scrappy Exp $
+.\" $Header: /cvsroot/pgsql/doc/man/Attic/fetch.l,v 1.2 1996/10/03 15:49:53 momjian Exp $
.TH FETCH SQL 01/23/93 Postgres95 Postgres95
.SH NAME
fetch \(em fetch instance(s) from a cursor
@@ -31,7 +31,7 @@ cursor updates back to base classes is impossible in general as with
view updates. Consequently, users must issue explicit replace
commands to update data.
.PP
-Portals may only be used inside of transaction blocks marked by
+Cursors may only be used inside of transaction blocks marked by
.IR begin (l)
and
.IR end (l)
@@ -42,19 +42,19 @@ because the data that they store spans multiple user queries.
--set up and use a cursor
--
begin
- declare myportal cursor for
+ declare mycursor cursor for
select * from pg-user
end
.fi
.nf
--
---Fetch all the instances available in the portal FOO
+--Fetch all the instances available in the cursor FOO
--
fetch all in FOO
.fi
.nf
--
---Fetch 5 instances backward in the portal FOO
+--Fetch 5 instances backward in the cursor FOO
--
fetch backward 5 in FOO
.fi
diff --git a/doc/man/libpq.3 b/doc/man/libpq.3
index 01d731a1541..e19c26dfcbc 100644
--- a/doc/man/libpq.3
+++ b/doc/man/libpq.3
@@ -1,6 +1,6 @@
.\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here....
-.\" $Header: /cvsroot/pgsql/doc/man/Attic/libpq.3,v 1.1.1.1 1996/08/18 22:14:25 scrappy Exp $
+.\" $Header: /cvsroot/pgsql/doc/man/Attic/libpq.3,v 1.2 1996/10/03 15:50:10 momjian Exp $
.TH LIBPQ INTRO 03/12/94 Postgres95 Postgres95
.SH DESCRIPTION
Libpq is the programmer's interface to Postgres. Libpq is a set of
@@ -665,7 +665,7 @@ main()
PQclear(res);
/* fetch instances from the pg_database, the system catalog of databases*/
- res = PQexec(conn,"DECLARE myportal CURSOR FOR select * from pg_database");
+ res = PQexec(conn,"DECLARE mycursor CURSOR FOR select * from pg_database");
if (PQresultStatus(res) != PGRES_COMMAND_OK) {
fprintf(stderr,"DECLARE CURSOR command failed\n");
PQclear(res);
@@ -673,7 +673,7 @@ main()
}
PQclear(res);
- res = PQexec(conn,"FETCH ALL in myportal");
+ res = PQexec(conn,"FETCH ALL in mycursor");
if (PQresultStatus(res) != PGRES_TUPLES_OK) {
fprintf(stderr,"FETCH ALL command didn't return tuples properly\n");
PQclear(res);
@@ -697,8 +697,8 @@ main()
PQclear(res);
- /* close the portal */
- res = PQexec(conn, "CLOSE myportal");
+ /* close the cursor */
+ res = PQexec(conn, "CLOSE mycursor");
PQclear(res);
/* end the transaction */
@@ -947,7 +947,7 @@ main()
PQclear(res);
- /* close the portal */
+ /* close the cursor */
res = PQexec(conn, "CLOSE mycursor");
PQclear(res);