Re: COPY TO (FREEZE)?

From: Mingli Zhang <zmlpostgres(at)gmail(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org, rjuju123(at)gmail(dot)com
Subject: Re: COPY TO (FREEZE)?
Date: 2023-10-29 06:50:37
Message-ID: CANG7CAKvcAeomd-M_FLsNjGTbuf=ovbw9nZGcd1hMcO7usZ6DQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Mingli Zhang <zmlpostgres(at)gmail(dot)com>于2023年10月29日 周日14:35写道:

>
>
> Bruce Momjian <bruce(at)momjian(dot)us>于2023年10月29日 周日10:04写道:
>
>> On Sat, Oct 28, 2023 at 09:54:05PM -0400, Tom Lane wrote:
>> > Bruce Momjian <bruce(at)momjian(dot)us> writes:
>> > > On Sat, Oct 28, 2023 at 09:39:53PM -0400, Tom Lane wrote:
>> > >> Not thrilled by the wording here.
>> >
>> > > I think it is modeled after:
>> >
>> > > errmsg("COPY force null only available using COPY FROM")));
>> >
>> > Well, now that you bring it up, that's no sterling example of
>> > clear writing either. Maybe change that while we're at it,
>> > say to "FORCE NULL option must not be used in COPY TO"?
>>
>> I used:
>>
>> "COPY FREEZE mode cannot be used with COPY FROM"
>>
>> and adjusted the others.
>>
>> > (Also, has it got the right ERRCODE?)
>>
>> Fixed, and the other cases too. Patch attached.
>>
>> --
>> Bruce Momjian <bruce(at)momjian(dot)us> https://momjian.us
>> EDB https://enterprisedb.com
>>
>> Only you can decide what is important to you.
>
>
> errmsg("COPY force not null only available using COPY FROM")));
>>
>> + (errcode(ERRCODE_INVALID_PARAMETER_VALUE),
>>
>> + errmsg("COPY force not null cannot be used with COPY FROM")));
>>
>>
> cannot -> can ?
>

I guess you want to write “cannot be used with COPY TO”

>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Erki Eessaar 2023-10-29 08:05:34 Re: Issues with Information_schema.views
Previous Message Mingli Zhang 2023-10-29 06:35:39 Re: COPY TO (FREEZE)?