Re: Logical Replication: SELECT pg_catalog.set_config Statement

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Hannes Kühtreiber <h(dot)kuehtreiber(at)synedra(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Logical Replication: SELECT pg_catalog.set_config Statement
Date: 2021-05-18 13:15:38
Message-ID: 3046968.1621343738@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

=?UTF-8?Q?Hannes_K=c3=bchtreiber?= <h(dot)kuehtreiber(at)synedra(dot)com> writes:
> Hello Tom, thanks for your answer!
> We found out because we are monitoring long running queries, and saw it
> had been running for a month before the restart yesterday.
> I just queried pg_stat_activity and it seems to be running since then.

Oh, that's because pg_stat_activity continues to show the last plain-SQL
query executed by the session.

I think we recently changed things so that replication commands
would be shown in pg_stat_activity too, but evidently you're running
a version older than that.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2021-05-18 13:41:22 Re:
Previous Message Hannes Kühtreiber 2021-05-18 13:04:56 Re: Logical Replication: SELECT pg_catalog.set_config Statement