From: | Vijaykumar Jain <vijaykumarjain(dot)github(at)gmail(dot)com> |
---|---|
To: | Mukesh Rajpurohit <vivasvan1902(at)gmail(dot)com> |
Cc: | 066ce286(at)free(dot)fr, Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Oracle error log table equivalent in postgresql |
Date: | 2021-08-06 12:37:28 |
Message-ID: | CAM+6J94H-jeuAfyo+w7FJyo07sOHHgshs0jyu29TgTOCpz80SA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On Fri, Aug 6, 2021, 6:01 PM Mukesh Rajpurohit <vivasvan1902(at)gmail(dot)com>
wrote:
> Thanks, but it solve just part of the problem. In oracle insert statement
> executes and rejected rows are inserted in error log table in same
> transaction. But, its similar feature or workaround seems hard in
> postgresql.
>
> Logging verbosity is configurable.
It can log a lot of detail of a particular query,
If you look at log line prefix, it has everything you would want imho wrt
logging the exception.
https://www.postgresql.org/docs/current/runtime-config-logging.html
But yes, I have not seen this stuff getting logged to any table.
Ofcourse, you can manage your custom table to log messages as partitions
and drop periodically etc, but I think I do not know more on this if there
has been a better way to do it via inbuilt solutions.
From | Date | Subject | |
---|---|---|---|
Next Message | Vijaykumar Jain | 2021-08-06 12:50:04 | Re: Oracle error log table equivalent in postgresql |
Previous Message | Mukesh Rajpurohit | 2021-08-06 12:30:45 | Re: Oracle error log table equivalent in postgresql |