Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
1f82f1de
Commit
1f82f1de
authored
May 20, 1999
by
Tatsuo Ishii
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
overwriting a large object now works
parent
165b830e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
src/test/examples/testlo.c
src/test/examples/testlo.c
+3
-3
src/test/examples/testlo2.c
src/test/examples/testlo2.c
+2
-3
No files found.
src/test/examples/testlo.c
View file @
1f82f1de
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/test/examples/testlo.c,v 1.1
1 1999/05/10 00:46:31 momjian
Exp $
* $Header: /cvsroot/pgsql/src/test/examples/testlo.c,v 1.1
2 1999/05/20 09:30:36 ishii
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -235,7 +235,7 @@ main(int argc, char **argv)
lobjOid
=
lo_import
(
conn
,
in_filename
);
if
(
lobjOid
==
0
)
fprintf
(
stderr
,
"%s
\n
"
,
PQerrorMessage
(
conn
));
/*
printf
(
"
\t
as large object %u.
\n
"
,
lobjOid
);
printf
(
"picking out bytes 1000-2000 of the large object
\n
"
);
...
...
@@ -243,7 +243,7 @@ main(int argc, char **argv)
printf
(
"overwriting bytes 1000-2000 of the large object with X's
\n
"
);
overwrite
(
conn
,
lobjOid
,
1000
,
1000
);
*/
printf
(
"exporting large object to file
\"
%s
\"
...
\n
"
,
out_filename
);
/* exportFile(conn, lobjOid, out_filename); */
...
...
src/test/examples/testlo2.c
View file @
1f82f1de
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/test/examples/Attic/testlo2.c,v 1.1
0 1999/05/10 00:46:32 momjian
Exp $
* $Header: /cvsroot/pgsql/src/test/examples/Attic/testlo2.c,v 1.1
1 1999/05/20 09:30:36 ishii
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -230,7 +230,7 @@ main(int argc, char **argv)
printf
(
"importing file
\"
%s
\"
...
\n
"
,
in_filename
);
/* lobjOid = importFile(conn, in_filename); */
lobjOid
=
lo_import
(
conn
,
in_filename
);
/*
printf
(
"
\t
as large object %u.
\n
"
,
lobjOid
);
printf
(
"picking out bytes 1000-2000 of the large object
\n
"
);
...
...
@@ -238,7 +238,6 @@ main(int argc, char **argv)
printf
(
"overwriting bytes 1000-2000 of the large object with X's
\n
"
);
overwrite
(
conn
,
lobjOid
,
1000
,
1000
);
*/
printf
(
"exporting large object to file
\"
%s
\"
...
\n
"
,
out_filename
);
/* exportFile(conn, lobjOid, out_filename); */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment