aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlog.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-10-08 21:52:34 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2012-10-08 21:52:34 -0400
commitbc433317ae2b0494dea4526b89dc7bb90a65d79b (patch)
tree34a7c5a753be8df91277c313c2c484bc569298ff /src/backend/access/transam/xlog.c
parentf52c5165e1d067ba94f92e5f149c19109b6fed60 (diff)
downloadpostgresql-bc433317ae2b0494dea4526b89dc7bb90a65d79b.tar.gz
postgresql-bc433317ae2b0494dea4526b89dc7bb90a65d79b.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/transam/xlog.c')
0 files changed, 0 insertions, 0 deletions