Re: DROP FUNCTION IF EXISTS

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: "Teodor Sigaev" <teodor(at)sigaev(dot)ru>, "Pgsql Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: DROP FUNCTION IF EXISTS
Date: 2006-09-25 12:39:58
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCEA35709@algol.sollentuna.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> 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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Csaba Nagy 2006-09-25 12:54:41 Re: DROP FUNCTION IF EXISTS
Previous Message Teodor Sigaev 2006-09-25 12:30:49 DROP FUNCTION IF EXISTS