Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possible problems with large objects (connection busy ) #710

Closed
volkmarbuehringer opened this issue Apr 3, 2020 · 2 comments
Closed

possible problems with large objects (connection busy ) #710

volkmarbuehringer opened this issue Apr 3, 2020 · 2 comments

Comments

@volkmarbuehringer
Copy link

Hi,

I am using pgx 4.6 and go 1.14
I use pgxpool for the db-connections.

I use largeObjects for streaming documents out of postgres into a POST request.
If the Post request aborts I have sometimes problems with busy conn on this transaction.

The closing of the large object and rollback of the transaction doesn't work because of this error.
I tried to discard the remaining data of the large object but this doesn't work either.

The only thing I could do is to isolate the large object access into an extra transaction, so the rest of the program can still work. So I have only errors from largeobject.Close and tx.Rollback.

Is there another way to clean the unfinished reader from the post-Request ?

Thanks.

@jackc
Copy link
Owner

jackc commented Apr 4, 2020

Do you have a way of reproducing this? It's hard to determine whether the issue is pgx or how the application is using it from just the description.

@bfontaine
Copy link
Contributor

Closing this since it’s not reproducible and the issue is two-years old.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants