"no col query": None,
"notify": 41522,
"password_encryption": 42519,
+ "pg_backend_pid": 35897,
"pg_terminate_backend": 35897,
"range": 41282,
- "severity_nonlocalized": 81794,
"scroll cursor": 77102,
"server-side cursor": 41412,
+ "severity_nonlocalized": 81794,
"stored procedure": 1751,
}
_crdb_reason_version = {
+ "backend pid": "skip < 22",
"cancel": "skip < 22",
}
assert conn.autocommit
-@pytest.mark.crdb_skip("backend pid")
+@pytest.mark.crdb_skip("pg_backend_pid")
def test_its_no_pool_at_all(dsn):
with NullConnectionPool(dsn, max_size=2) as p:
with p.connection() as conn:
@pytest.mark.slow
@pytest.mark.timing
-@pytest.mark.crdb_skip("backend pid")
+@pytest.mark.crdb_skip("pg_backend_pid")
def test_queue(dsn):
def worker(n):
t0 = time()
@pytest.mark.slow
@pytest.mark.timing
-@pytest.mark.crdb_skip("backend pid")
+@pytest.mark.crdb_skip("pg_backend_pid")
def test_queue_timeout(dsn):
def worker(n):
t0 = time()
@pytest.mark.slow
@pytest.mark.timing
-@pytest.mark.crdb_skip("backend pid")
+@pytest.mark.crdb_skip("pg_backend_pid")
def test_queue_timeout_override(dsn):
def worker(n):
t0 = time()
assert 0.1 < e[1] < 0.15
-@pytest.mark.crdb_skip("backend pid")
+@pytest.mark.crdb_skip("pg_backend_pid")
def test_broken_reconnect(dsn):
with NullConnectionPool(dsn, max_size=1) as p:
with p.connection() as conn:
@pytest.mark.crdb_skip("backend pid")
+@pytest.mark.crdb_skip("copy")
def test_active_close(dsn, caplog):
caplog.set_level(logging.WARNING, logger="psycopg.pool")
pids = []
assert conn.autocommit
-@pytest.mark.crdb_skip("backend pid")
+@pytest.mark.crdb_skip("pg_backend_pid")
async def test_its_no_pool_at_all(dsn):
async with AsyncNullConnectionPool(dsn, max_size=2) as p:
async with p.connection() as conn:
@pytest.mark.slow
@pytest.mark.timing
-@pytest.mark.crdb_skip("backend pid")
+@pytest.mark.crdb_skip("pg_backend_pid")
async def test_queue(dsn):
async def worker(n):
t0 = time()
@pytest.mark.slow
@pytest.mark.timing
-@pytest.mark.crdb_skip("backend pid")
+@pytest.mark.crdb_skip("pg_backend_pid")
async def test_queue_timeout(dsn):
async def worker(n):
t0 = time()
@pytest.mark.slow
@pytest.mark.timing
-@pytest.mark.crdb_skip("backend pid")
+@pytest.mark.crdb_skip("pg_backend_pid")
async def test_queue_timeout_override(dsn):
async def worker(n):
t0 = time()
assert 0.1 < e[1] < 0.15
-@pytest.mark.crdb_skip("backend pid")
+@pytest.mark.crdb_skip("pg_backend_pid")
async def test_broken_reconnect(dsn):
async with AsyncNullConnectionPool(dsn, max_size=1) as p:
async with p.connection() as conn:
@pytest.mark.crdb_skip("backend pid")
+@pytest.mark.crdb_skip("copy")
async def test_active_close(dsn, caplog):
caplog.set_level(logging.WARNING, logger="psycopg.pool")
pids = []
assert conn.autocommit
-@pytest.mark.crdb_skip("backend pid")
+@pytest.mark.crdb_skip("pg_backend_pid")
def test_its_really_a_pool(dsn):
with pool.ConnectionPool(dsn, min_size=2) as p:
with p.connection() as conn:
@pytest.mark.slow
@pytest.mark.timing
-@pytest.mark.crdb_skip("backend pid")
+@pytest.mark.crdb_skip("pg_backend_pid")
def test_queue(dsn):
def worker(n):
t0 = time()
@pytest.mark.slow
@pytest.mark.timing
-@pytest.mark.crdb_skip("backend pid")
+@pytest.mark.crdb_skip("pg_backend_pid")
def test_queue_timeout(dsn):
def worker(n):
t0 = time()
@pytest.mark.slow
@pytest.mark.timing
-@pytest.mark.crdb_skip("backend pid")
+@pytest.mark.crdb_skip("pg_backend_pid")
def test_queue_timeout_override(dsn):
def worker(n):
t0 = time()
assert 0.1 < e[1] < 0.15
-@pytest.mark.crdb_skip("backend pid")
+@pytest.mark.crdb_skip("pg_backend_pid")
def test_broken_reconnect(dsn):
with pool.ConnectionPool(dsn, min_size=1) as p:
with p.connection() as conn:
@pytest.mark.crdb_skip("backend pid")
+@pytest.mark.crdb_skip("copy")
def test_active_close(dsn, caplog):
caplog.set_level(logging.WARNING, logger="psycopg.pool")
assert conn.autocommit
-@pytest.mark.crdb_skip("backend pid")
+@pytest.mark.crdb_skip("pg_backend_pid")
async def test_its_really_a_pool(dsn):
async with pool.AsyncConnectionPool(dsn, min_size=2) as p:
async with p.connection() as conn:
@pytest.mark.slow
@pytest.mark.timing
-@pytest.mark.crdb_skip("backend pid")
+@pytest.mark.crdb_skip("pg_backend_pid")
async def test_queue(dsn):
async def worker(n):
t0 = time()
@pytest.mark.slow
@pytest.mark.timing
-@pytest.mark.crdb_skip("backend pid")
+@pytest.mark.crdb_skip("pg_backend_pid")
async def test_queue_timeout(dsn):
async def worker(n):
t0 = time()
@pytest.mark.slow
@pytest.mark.timing
-@pytest.mark.crdb_skip("backend pid")
+@pytest.mark.crdb_skip("pg_backend_pid")
async def test_queue_timeout_override(dsn):
async def worker(n):
t0 = time()
assert 0.1 < e[1] < 0.15
-@pytest.mark.crdb_skip("backend pid")
+@pytest.mark.crdb_skip("pg_backend_pid")
async def test_broken_reconnect(dsn):
async with pool.AsyncConnectionPool(dsn, min_size=1) as p:
async with p.connection() as conn:
@pytest.mark.crdb_skip("backend pid")
+@pytest.mark.crdb_skip("copy")
async def test_active_close(dsn, caplog):
caplog.set_level(logging.WARNING, logger="psycopg.pool")