pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedserver log error on conflict do nothing
2+ messages / 2 participants
[nested] [flat]
* server log error on conflict do nothing
@ 2024-04-05 11:10 Claudio Nasuti <caesarfive@gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Claudio Nasuti @ 2024-04-05 11:10 UTC (permalink / raw)
To: pgsql-admin@lists.postgresql.org
Dear Admins,
we have a couple of concurrent application that sometimes goes in conflict
performing an insert
in a table.
At client side they are managed with clause "on conflict do nothing" and
work perfeclty.
That said when the conflict happens it is reported in the postgresql server
log.
I would like to know (I was unable to find the info in the documentation
nor in the maillist archive)
if it is possible to configure the server to avoid that these "managed"
conflict are reported as error in the server log.
Thanks in advance for your support
Claudio
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: server log error on conflict do nothing
@ 2024-04-05 12:05 Laurenz Albe <laurenz.albe@cybertec.at>
parent: Claudio Nasuti <caesarfive@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Laurenz Albe @ 2024-04-05 12:05 UTC (permalink / raw)
To: Claudio Nasuti <caesarfive@gmail.com>; pgsql-admin@lists.postgresql.org
On Fri, 2024-04-05 at 13:10 +0200, Claudio Nasuti wrote:
> we have a couple of concurrent application that sometimes goes in conflict performing an insert
> in a table.
> At client side they are managed with clause "on conflict do nothing" and work perfeclty.
> That said when the conflict happens it is reported in the postgresql server log.
> I would like to know (I was unable to find the info in the documentation nor in the maillist archive)
> if it is possible to configure the server to avoid that these "managed" conflict are reported as error in the server log.
That cannot be.
It must be some other constraint violations you see in the log.
Normally all errors will reach the client, unless you catch them
with an exception handler in PL/pgSQL code.
Yours,
Laurenz Albe
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2024-04-05 12:05 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2024-04-05 11:10 server log error on conflict do nothing Claudio Nasuti <caesarfive@gmail.com>
2024-04-05 12:05 ` Laurenz Albe <laurenz.albe@cybertec.at>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox