Re: csv format for psql

Поиск
Список
Период
Сортировка
От Daniel Verite
Тема Re: csv format for psql
Дата
Msg-id 57be15f5-2f1b-4595-94f9-facdeacba571@manitou-mail.org
обсуждение исходный текст
Ответ на Re: csv format for psql  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: csv format for psql  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
    Michael Paquier wrote:

> +    /* check for value being non-empty and with an MB length of 1 */
> +    if (*value == '\0' || value[PQmblen(value, pset.encoding)] != '\0')
>
> It seems to me that this can just be replaced with that:
> if (strlen(value) != 1)

The above is meant to accept a multibyte character as the separator,
in which case strlen(value) would be greater than 1.

Best regards,
--
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite


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

Предыдущее
От: "Kato, Sho"
Дата:
Сообщение: RE: Performance improvements of INSERTs to a partitioned table
Следующее
От: "Daniel Verite"
Дата:
Сообщение: Alternative to \copy in psql modelled after \g