Re: COPY TO (FREEZE)?

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: COPY TO (FREEZE)?
Дата
Msg-id ZT29j5A0g9zO1IS6@momjian.us
обсуждение исходный текст
Ответ на Re: COPY TO (FREEZE)?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: COPY TO (FREEZE)?  (Mingli Zhang <zmlpostgres@gmail.com>)
Список pgsql-hackers
On Sat, Oct 28, 2023 at 09:54:05PM -0400, Tom Lane wrote:
> Bruce Momjian <bruce@momjian.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@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  Only you can decide what is important to you.

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: COPY TO (FREEZE)?
Следующее
От: "Hayato Kuroda (Fujitsu)"
Дата:
Сообщение: RE: pg_upgrade test failure