skip to Main Content

Output from psycopg2 differs from command line – Postgresql

When I run select now() - pg_last_xact_replay_timestamp() AS replication_delay directly on the database, the output is replication_delay ------------------- -00:00:00.55072 (1 row) When I put the same query in a python script import psycopg2 try: connection = psycopg2.connect(user="postgres", host="x.x.x.x", port="5432", database="postgres")…

VIEW QUESTION
Back To Top
Search