We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
On 2.5.1.0, if I drop a database which has connections to it, the database is dropped but the connections stay orphan.
On PostgreSQL, you can't drop a database with active connections, so this is not possible.
Simple script in python that creates/drops a database in a loop to show connections remaining open:
def schema_test(): import psycopg2 index = 0 pg0 = psycopg2.connect("dbname=yugabyte host=localhost user=yugabyte password=yugabyte port=5433") pg0.autocommit = True c0 = pg0.cursor() while True: c0.execute("create database vid_app;") pg1 = psycopg2.connect("dbname=vid_app host=localhost user=yugabyte password=yugabyte port=5433") pg1.autocommit = True c1 = pg1.cursor() c1.execute("create table aa(id text primary key);") c0.execute("drop database vid_app;") pg1.close() index += 1 print(f"index:{index}") exit() schema_test()
You can see processes increasing by running:
ps ax |grep yugabyte
The text was updated successfully, but these errors were encountered:
@ddorian -- would you mind verifying this with 2.5.2?
Sorry, something went wrong.
@kmuthukk it's fixed on 2.5.2.0. Connections get closed correctly.
Related to/duplicate of: #7105
ddorian
m-iancu
No branches or pull requests
On 2.5.1.0, if I drop a database which has connections to it, the database is dropped but the connections stay orphan.
On PostgreSQL, you can't drop a database with active connections, so this is not possible.
Simple script in python that creates/drops a database in a loop to show connections remaining open:
You can see processes increasing by running:
The text was updated successfully, but these errors were encountered: