aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistxlog.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-10-08 21:52:42 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2012-10-08 21:52:42 -0400
commitc5b8daa08d9abf7812d58617b834a6589760f8af (patch)
treef13c7c74ba3d1c9f8c65e3d21d3455e9f61a9f20 /src/backend/access/gist/gistxlog.c
parentcf9d99298cf8b59f8cd0f73f5e74e45c2462eb7e (diff)
downloadpostgresql-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