diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2012-10-08 21:52:53 -0400 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2012-10-08 21:52:53 -0400 |
| commit | 875406af6ff961ba169db11c74828f02e96f5753 (patch) | |
| tree | 652372923977f919ae440040487501ca224892f4 /src/backend/storage | |
| parent | 1e9d79856dacf38570e9d9080081c5ba60841f54 (diff) | |
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/storage')
0 files changed, 0 insertions, 0 deletions
