Re: How to get error message details from libpq based psqlODBC driver (regression)

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Andrus <kobruleht2(at)hot(dot)ee>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to get error message details from libpq based psqlODBC driver (regression)
Date: 2020-02-23 18:34:22
Message-ID: 1aae144e-3b2b-38cc-0b4e-222960ff95a7@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2/23/20 1:06 AM, Andrus wrote:
> Hi!
>
>> What does the log_error_verbosity setting in postgresql.conf show?
>
> It is not set. postgresql.conf contains it default value from installation:
>
> #log_error_verbosity = default        # terse, default, or verbose messages
>
> I changed it to
>
> log_error_verbosity = verbose
>
> but problem persists.
>
> postgres log file contains
>
> 2020-02-23 09:02:27.646 GMT [11252] ERROR:  23503: insert or update on
> table "rid" violates foreign key constraint "rid_yhik_fkey"
> 2020-02-23 09:02:27.646 GMT [11252] DETAIL:  Key (yhik)=(xx    ) is not
> present in table "mootyhik".
> 2020-02-23 09:02:27.646 GMT [11252] LOCATION:  ri_ReportViolation,
> d:\pginstaller_12.auto\postgres.windows-x64\src\backend\utils\adt\ri_triggers.c:2474
>
> 2020-02-23 09:02:27.646 GMT [11252] STATEMENT:  insert into rid
> (dokumnr, yhik) values (2065, 'xx')
>
>
> but application shows only
>
> ERROR: insert or update on table "rid" violates foreign key constraint
> "rid_yhik_fkey"

I don't have an answer for you. There maybe someone else on this list
that could help, though I think your best bet would be to ask the
question again on the pgsql-odbc list.

>
> Andrus.

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2020-02-23 18:42:42 Re: Replication: slave server has 3x size of production server?
Previous Message Adrian Klaver 2020-02-23 18:19:34 Re: Reset DB stats suggestion pg_stat_reset()