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
28275163
Commit
28275163
authored
Mar 18, 2010
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Also print the libpq error message when lo_create or lo_open fails
parent
a401226b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
src/bin/pg_dump/pg_backup_archiver.c
src/bin/pg_dump/pg_backup_archiver.c
+5
-5
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.c
+3
-3
No files found.
src/bin/pg_dump/pg_backup_archiver.c
View file @
28275163
...
...
@@ -15,7 +15,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.18
2 2010/02/26 02:01:16 momjian
Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.18
3 2010/03/18 20:00:51 petere
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -935,13 +935,13 @@ StartRestoreBlob(ArchiveHandle *AH, Oid oid, bool drop)
{
loOid
=
lo_create
(
AH
->
connection
,
oid
);
if
(
loOid
==
0
||
loOid
!=
oid
)
die_horribly
(
AH
,
modulename
,
"could not create large object %u
\n
"
,
oid
);
die_horribly
(
AH
,
modulename
,
"could not create large object %u
: %s
"
,
oid
,
PQerrorMessage
(
AH
->
connection
)
);
}
AH
->
loFd
=
lo_open
(
AH
->
connection
,
oid
,
INV_WRITE
);
if
(
AH
->
loFd
==
-
1
)
die_horribly
(
AH
,
modulename
,
"could not open large object %u
\n
"
,
oid
);
die_horribly
(
AH
,
modulename
,
"could not open large object %u
: %s
"
,
oid
,
PQerrorMessage
(
AH
->
connection
)
);
}
else
{
...
...
src/bin/pg_dump/pg_dump.c
View file @
28275163
...
...
@@ -25,7 +25,7 @@
* http://archives.postgresql.org/pgsql-bugs/2010-02/msg00187.php
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.57
8 2010/03/11 04:36:43 tgl
Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.57
9 2010/03/18 20:00:51 petere
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -2117,7 +2117,7 @@ dumpBlobs(Archive *AH, void *arg)
loFd
=
lo_open
(
g_conn
,
blobOid
,
INV_READ
);
if
(
loFd
==
-
1
)
{
write_msg
(
NULL
,
"
dumpBlobs():
could not open large object %u: %s"
,
write_msg
(
NULL
,
"could not open large object %u: %s"
,
blobOid
,
PQerrorMessage
(
g_conn
));
exit_nicely
();
}
...
...
@@ -2130,7 +2130,7 @@ dumpBlobs(Archive *AH, void *arg)
cnt
=
lo_read
(
g_conn
,
loFd
,
buf
,
LOBBUFSIZE
);
if
(
cnt
<
0
)
{
write_msg
(
NULL
,
"
dumpBlobs():
error reading large object %u: %s"
,
write_msg
(
NULL
,
"error reading large object %u: %s"
,
blobOid
,
PQerrorMessage
(
g_conn
));
exit_nicely
();
}
...
...
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