diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2012-10-08 21:52:48 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2012-10-08 21:52:48 -0400 |
commit | bb3aa7a484a53d80784c367e2ff272b8730e338d (patch) | |
tree | e889e2bdf0b9a0c21202c1c1aae51376e87b69d9 /src/backend/access/gist/gistvacuum.c | |
parent | a883c02449cf86a657838303213d11ad85939b1d (diff) | |
download | postgresql-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