Re: [HACKERS] message for constraint - Mailing list pgsql-patches

From Tom Lane
Subject Re: [HACKERS] message for constraint
Date
Msg-id 18049.1137445498@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] message for constraint  (Jaime Casanova <systemguards@gmail.com>)
List pgsql-patches
Jaime Casanova <systemguards@gmail.com> writes:
> ok... maybe notice? log? i suppose that the ERROR  line is error level
> so the idea is lowering the context so i can put
> client_min_messages='error' and see just what the user can
> understand...

If you don't want to show the context field, build your own error
message from the other fields.  libpq provides adequate support for
that.  I'm not sure what the state of play is in JDBC or other APIs,
but if you need this you should be lobbying the client-side library
authors to change, not the backend.

            regards, tom lane

pgsql-patches by date:

Previous
From: Jaime Casanova
Date:
Subject: Re: [HACKERS] message for constraint
Next
From: Alvaro Herrera
Date:
Subject: Re: [HACKERS] message for constraint