Re: error messages during restore

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: error messages during restore
Дата
Msg-id 26947.1300496286@sss.pgh.pa.us
обсуждение исходный текст
Ответ на error messages during restore  (Geoffrey Myers <lists@serioustechnology.com>)
Ответы Re: error messages during restore  (Geoffrey Myers <lists@serioustechnology.com>)
Список pgsql-general
Geoffrey Myers <lists@serioustechnology.com> writes:
> So we are in the process of converting our databases from SQL_ASCII to
> UTF8.  If a particular row won't import because of the encoding issue we
> get an error like:

> pg_restore: [archiver (db)] Error from TOC entry 5317; 0 1266711 TABLE
> DATA logs postgres
> pg_restore: [archiver (db)] COPY failed: ERROR:  invalid byte sequence
> for encoding "UTF8": 0x90
> HINT:  This error can also happen if the byte sequence does not match
> the encoding expected by the server, which is controlled by
> "client_encoding".
> CONTEXT:  COPY logs, line 590744

> Question is, it would be really nice if we could figure out the actual
> column name in that table.

Sorry, no chance of that.  The line is converted to server encoding
before any attempt is made to split it into columns.  Since the column
delimiter is potentially encoding-specific, there's not really any
alternative to doing it that way.

            regards, tom lane

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

Предыдущее
От: Dan S
Дата:
Сообщение: Re: How do I do this in plpgsql ?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Re: [GENERAL] Re: [GENERAL] Re: [GENERAL] Different encoding for string values and identifier strings? Or (select 'tést' as tést) returns different values for string and identifier...