Postgresql Transaction ID Not Found

后端 未结 8 1200
小蘑菇
小蘑菇 2021-02-12 11:35

Whenever I am executing a query in postgresql, this is the error message I receive

Transaction ID not found in the session.

Does any

8条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-12 12:15

    Has anyone found an explanation for this problem? I am also getting a "Transaction ID not found in the session.". It's for a long running (several days) query. I ran it on a 10% sample of my data and had no trouble, but now need to repeat the process for the full dataset. I reconnect to the database and the query appears as still active. A new idle query appears as follows:

    SELECT rel.oid, rel.relname AS name,
        (SELECT count(*) FROM pg_trigger WHERE tgrelid=rel.oid AND tgisinternal = FALSE) AS triggercount,
        (SELECT count(*) FROM pg_trigger WHERE tgrelid=rel.oid AND tgisinternal = FALSE AND tgenabled = 'O') AS has_enable_triggers,
        (CASE WHEN rel.relkind = 'p' THEN true ELSE false END) AS is_partitioned
    FROM pg_class rel
        WHERE rel.relkind IN ('r','s','t','p') AND rel.relnamespace = 2200::oid
        AND NOT rel.relispartition
            ORDER BY rel.relname;
    

提交回复
热议问题