aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistvacuum.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-10-08 21:52:48 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2012-10-08 21:52:48 -0400
commitbb3aa7a484a53d80784c367e2ff272b8730e338d (patch)
treee889e2bdf0b9a0c21202c1c1aae51376e87b69d9 /src/backend/access/gist/gistvacuum.c
parenta883c02449cf86a657838303213d11ad85939b1d (diff)
downloadpostgresql-bb3aa7a484a53d80784c367e2ff272b8730e338d.tar.gz
postgresql-bb3aa7a484a53d80784c367e2ff272b8730e338d.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/gistvacuum.c')
0 files changed, 0 insertions, 0 deletions