Re: DROP FUNCTION IF EXISTS

Поиск
Список
Период
Сортировка
Искать
От
Magnus Hagander
Тема
Re: DROP FUNCTION IF EXISTS
Дата
Msg-id
6BCB9D8A16AC4241919521715F4D8BCEA35709@algol.sollentuna.se
Ответ на
DROP FUNCTION IF EXISTS (Teodor Sigaev)
Список
Дерево обсуждения
Re: DROP FUNCTION IF EXISTS Benny Amorsen <benny+usenet@amorsen.dk>
Re: [OT]DROP FUNCTION IF EXISTS Csaba Nagy <nagy@ecircle-ag.com>
> Linux:
> 
> $ echo 'DROP FUNCTION if exists foo(int);' | psql 1c Timing is on.
> SET
> Time: 197.941 ms
> NOTICE:  function foo(░) does not exist ... skipping
> 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".
> 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".
> 
> 
> FreeBSD:
> % echo 'DROP FUNCTION if exists foo(int);' | psql wow SET
> NOTICE:  function foo(%
> 
> 
> Looks like uninitialized pointer...

Not being an expert, but to me it looks like the client_encoding being set to UTF8 but the data being sent is something other than UTF8. I've seen this happen on Linux when connecting with PuTTY from Windows (and then psql from the linux machine) and having the wrong encoding set in PuTTY. I'd double and triple-check the client-side stuff first ;-)


//Magnus


В списке pgsql-hackers по дате отправления
От: Teodor Sigaev
Дата:
Сообщение: DROP FUNCTION IF EXISTS
От: Csaba Nagy
Дата:
Сообщение: Re: DROP FUNCTION IF EXISTS
FAQ