Re: Reducing the log spam
От | Jelte Fennema-Nio |
---|---|
Тема | Re: Reducing the log spam |
Дата | |
Msg-id | CAGECzQQWxim24gO1kmZbRrXGT0xqjFn7qbwHkm-48CA4k_Tu8Q@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Reducing the log spam (Laurenz Albe <laurenz.albe@cybertec.at>) |
Ответы |
Re: Reducing the log spam
|
Список | 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 по дате отправления: