Z
Size: a a a
Z
Z
A
async def get_cards(ids: List[int]) -> List[dict]:не подключается, виснет в юпитере
connection = await connect()
records = await connection.fetch(
"""
select url from pages p where property_class = 'industrial';
""",
id
)
await connection.close()
return records
loop = asyncio.get_event_loop()
result = loop.run_until_complete(get_cards(id))
Z
A
A
v
DI
ML
DI
ML
DI
# pg_lsclusters
Ver Cluster Port Status Owner Data directory Log file
9.6 main 5433 online postgres /var/lib/postgresql/9.6/main /var/log/postgresql/postgresql-9.6-main.log
13 main 5432 online postgres /var/lib/postgresql/13/main /var/log/postgresql/postgresql-13-main.logDI
# pg_ctlcluster
Error: Usage: /usr/bin/pg_ctlcluster <version> <cluster> <action> [-- <pg_ctl options>]
# pg_ctlcluster 9.6 main restartML
DI
DI
DI
ML
DI
V