diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2012-10-08 21:52:42 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2012-10-08 21:52:42 -0400 |
commit | c5b8daa08d9abf7812d58617b834a6589760f8af (patch) | |
tree | f13c7c74ba3d1c9f8c65e3d21d3455e9f61a9f20 /src/backend/access/gist/gistxlog.c | |
parent | cf9d99298cf8b59f8cd0f73f5e74e45c2462eb7e (diff) | |
download | postgresql-c5b8daa08d9abf7812d58617b834a6589760f8af.tar.gz postgresql-c5b8daa08d9abf7812d58617b834a6589760f8af.zip |
Fix lo_import and lo_export to return useful error messages more often.
I found that these functions tend to return -1 while leaving an empty error
message string in the PGconn, if they suffer some kind of I/O error on the
file. The reason is that lo_close, which thinks it's executed a perfectly
fine SQL command, clears the errorMessage. The minimum-change workaround
is to reorder operations here so that we don't fill the errorMessage until
after lo_close.
Diffstat (limited to 'src/backend/access/gist/gistxlog.c')
0 files changed, 0 insertions, 0 deletions