Colleagues, good. Trying to connect to the Postgress base in Python. The code gets into the database, and searches for a message by phone number. Here is the code
ith psycopg2.connect(dbname='', user='', password='', host='', port='', sslmode='') as conn: with conn.cursor() as cursor: cursor.execute("SELECT * FROM pfr WHERE xml_data LIKE '%+79169522420%'") record = cursor.fethall() for row in cursor: print(row) But the log
conn = _connect (dsn, connection_factory = connection_factory, ** kwasync) psycopg2.Operational Error: could not connect to server: Connection timed> out (0x0000274C / 10060) Is the server running on host "172.18.0.89" and accepting TCP / IP connections on port 5432?