Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
2e9010cd
Commit
2e9010cd
authored
28 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Renamed createdb.l to create_database.l.
Changed portal to cursor.
parent
4bec96f1
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
doc/man/create_database.l
+1
-1
1 addition, 1 deletion
doc/man/create_database.l
doc/man/fetch.l
+5
-5
5 additions, 5 deletions
doc/man/fetch.l
doc/man/libpq.3
+6
-6
6 additions, 6 deletions
doc/man/libpq.3
with
12 additions
and
12 deletions
doc/man/create
db
.l
→
doc/man/create
_database
.l
+
1
−
1
View file @
2e9010cd
.\" This is -*-nroff-*-
.\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here....
.\" XXX standard disclaimer belongs here....
.\" $Header: /cvsroot/pgsql/doc/man/Attic/create
db
.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
.TH "CREATE DATABASE" SQL 11/05/95 Postgres95 Postgres95
.SH NAME
.SH NAME
create database \(em create a new database
create database \(em create a new database
...
...
This diff is collapsed.
Click to expand it.
doc/man/fetch.l
+
5
−
5
View file @
2e9010cd
.\" This is -*-nroff-*-
.\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here....
.\" 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
.TH FETCH SQL 01/23/93 Postgres95 Postgres95
.SH NAME
.SH NAME
fetch \(em fetch instance(s) from a cursor
fetch \(em fetch instance(s) from a cursor
...
@@ -31,7 +31,7 @@ cursor updates back to base classes is impossible in general as with
...
@@ -31,7 +31,7 @@ cursor updates back to base classes is impossible in general as with
view updates. Consequently, users must issue explicit replace
view updates. Consequently, users must issue explicit replace
commands to update data.
commands to update data.
.PP
.PP
Portal
s may only be used inside of transaction blocks marked by
Cursor
s may only be used inside of transaction blocks marked by
.IR begin (l)
.IR begin (l)
and
and
.IR end (l)
.IR end (l)
...
@@ -42,19 +42,19 @@ because the data that they store spans multiple user queries.
...
@@ -42,19 +42,19 @@ because the data that they store spans multiple user queries.
--set up and use a cursor
--set up and use a cursor
--
--
begin
begin
declare my
portal
cursor for
declare my
cursor
cursor for
select * from pg-user
select * from pg-user
end
end
.fi
.fi
.nf
.nf
--
--
--Fetch all the instances available in the
portal
FOO
--Fetch all the instances available in the
cursor
FOO
--
--
fetch all in FOO
fetch all in FOO
.fi
.fi
.nf
.nf
--
--
--Fetch 5 instances backward in the
portal
FOO
--Fetch 5 instances backward in the
cursor
FOO
--
--
fetch backward 5 in FOO
fetch backward 5 in FOO
.fi
.fi
...
...
This diff is collapsed.
Click to expand it.
doc/man/libpq.3
+
6
−
6
View file @
2e9010cd
.\" This is -*-nroff-*-
.\" This is -*-nroff-*-
.\" XXX standard disclaimer belongs here....
.\" 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
.TH LIBPQ INTRO 03/12/94 Postgres95 Postgres95
.SH DESCRIPTION
.SH DESCRIPTION
Libpq is the programmer's interface to Postgres. Libpq is a set of
Libpq is the programmer's interface to Postgres. Libpq is a set of
...
@@ -665,7 +665,7 @@ main()
...
@@ -665,7 +665,7 @@ main()
PQclear(res);
PQclear(res);
/* fetch instances from the pg_database, the system catalog of databases*/
/* fetch instances from the pg_database, the system catalog of databases*/
res = PQexec(conn,"DECLARE my
portal
CURSOR FOR select * from pg_database");
res = PQexec(conn,"DECLARE my
cursor
CURSOR FOR select * from pg_database");
if (PQresultStatus(res) != PGRES_COMMAND_OK) {
if (PQresultStatus(res) != PGRES_COMMAND_OK) {
fprintf(stderr,"DECLARE CURSOR command failed\n");
fprintf(stderr,"DECLARE CURSOR command failed\n");
PQclear(res);
PQclear(res);
...
@@ -673,7 +673,7 @@ main()
...
@@ -673,7 +673,7 @@ main()
}
}
PQclear(res);
PQclear(res);
res = PQexec(conn,"FETCH ALL in my
portal
");
res = PQexec(conn,"FETCH ALL in my
cursor
");
if (PQresultStatus(res) != PGRES_TUPLES_OK) {
if (PQresultStatus(res) != PGRES_TUPLES_OK) {
fprintf(stderr,"FETCH ALL command didn't return tuples properly\n");
fprintf(stderr,"FETCH ALL command didn't return tuples properly\n");
PQclear(res);
PQclear(res);
...
@@ -697,8 +697,8 @@ main()
...
@@ -697,8 +697,8 @@ main()
PQclear(res);
PQclear(res);
/* close the
portal
*/
/* close the
cursor
*/
res = PQexec(conn, "CLOSE my
portal
");
res = PQexec(conn, "CLOSE my
cursor
");
PQclear(res);
PQclear(res);
/* end the transaction */
/* end the transaction */
...
@@ -947,7 +947,7 @@ main()
...
@@ -947,7 +947,7 @@ main()
PQclear(res);
PQclear(res);
/* close the
portal
*/
/* close the
cursor
*/
res = PQexec(conn, "CLOSE mycursor");
res = PQexec(conn, "CLOSE mycursor");
PQclear(res);
PQclear(res);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment