-
Notifications
You must be signed in to change notification settings - Fork 419
asyncpg.exceptions.DuplicatePreparedStatementError: prepared statement “stmt_5” already exists #149
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
Comments
Please try to reproduce with 0.11.0. |
Hi @elprans, I'm facing the same issue 0.12.0, in my case problem is in lock I suppose, |
@Reskov Can you reproduce the bug in code that you can share with us? I don't see how lock can help there. |
@1st1 Yes, you are right, already have _stmt_exclusive_section, my problem was something like pgbouncer, same pg connection between application sessions, sorry for the misunderstanding. |
@Reskov @johannspies |
0.8.4-1
9.6
3.5.3-1
LInux. Debian
No
No
uvloop?:
No. It is too complicated.
0
down vote
favorite
The function "runquery" gets called from different parts of a program. I never use "prepare" in my query statements in this case. I have read all the other questions about "prepared statement already exists" and have tried "DEALLOCATE ALL" also. But that results in the opposite error: while the error below complains that the prepared statement already exists, DEALLOCATE ALL results in a complaint that it does not exist.
This is my first attempt to run this type of program using asyncpg.
After many queries as shown below, runquery ends with an error reporting:
Could not complete query "select uuid from wos_2017_1.combined_name where combined_name = 'xxxxxxx';"
The text was updated successfully, but these errors were encountered: