Thanks to visit codestin.com
Credit goes to postgrespro.com

Re: Conflict handling for COPY FROM - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: Conflict handling for COPY FROM
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: Conflict handling for COPY FROM  (Surafel Temesgen <[email protected]>)
Responses Re: Conflict handling for COPY FROM
List pgsql-hackers
On 2/20/19 8:01 AM, Surafel Temesgen wrote:
>
>
> On Tue, Feb 19, 2019 at 3:47 PM Andres Freund <[email protected]
> <mailto:[email protected]>> wrote:
>
>
>
>     Err, what? Again, that requires super user permissions (in
>     contrast to copy from/to stdin/out). Backends run as the user
>     postgres runs under
>
>
>  
> okay i see it now and modified the patch similarly 
>
>


Why log to a file at all? We do have, you know, a database handy, where
we might more usefully log errors. You could usefully log the offending
row as an array of text, possibly.


cheers


andrew

-- 
Andrew Dunstan                https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Alexey Kondratov
Date:
Subject: Re: 2019-03 CF Summary / Review - Tranche #2
Next
From: Alvaro Herrera
Date:
Subject: Re: crash in pg_identify_object_as_address