Add debug

This commit is contained in:
Alexey Masterov
2024-09-10 12:26:22 +02:00
parent dbde226f38
commit fe8fee0b88

View File

@@ -54,13 +54,13 @@ def setup(remote_pg: RemotePostgres):
conn.rollback()
yield
log.info("Looking for extra roles...")
cur.execute(
"SELECT rolname FROM pg_catalog.pg_roles WHERE oid > 16384 AND rolname <> 'neondb_owner'"
)
log.info("Rows count: %s", cur.rowcount)
for role in cur:
cur.execute(f"DROP ROLE {role[0]}")
conn.commit()
#cur.execute(
# "SELECT rolname FROM pg_catalog.pg_roles WHERE oid > 16384 AND rolname <> 'neondb_owner'"
#)
#log.info("Rows count: %s", cur.rowcount)
#for role in cur:
# cur.execute(f"DROP ROLE {role[0]}")
#conn.commit()
@pytest.mark.timeout(7200)