Re: Reducing the log spam - Mailing list pgsql-hackers

From Jelte Fennema-Nio
Subject Re: Reducing the log spam
Date
Msg-id CAGECzQQWxim24gO1kmZbRrXGT0xqjFn7qbwHkm-48CA4k_Tu8Q@mail.gmail.com
Whole thread Raw
In response to Re: Reducing the log spam  (Laurenz Albe <laurenz.albe@cybertec.at>)
Responses Re: Reducing the log spam
List pgsql-hackers
On Thu, 2 May 2024 at 12:47, Laurenz Albe <laurenz.albe@cybertec.at> wrote:
> Yes.  But I'd argue that that is a shortcoming of logical replication:
> there should be a ways to get this information via SQL.  Having to look into
> the log file is not a very useful option.

Definitely agreed that accessing the error details using SQL would be
much better. But having no way at all (by default) to find the cause
of the failure is clearly much worse.

> The feature will become much less useful if unique voilations keep getting logged.

Agreed. How about changing the patch so that the GUC is not applied to
logical replication apply workers (and document that accordingly). I
can think of two ways of achieving that (but there might be
other/better ones):
1. Set the GUC to empty string when an apply worker is started.
2. Change the newly added check in errcode() to only set
output_to_server to false when IsLogicalWorker() returns false.



pgsql-hackers by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: Reducing the log spam
Next
From: Jelte Fennema-Nio
Date:
Subject: Re: Reducing the log spam