Unix Technical Forum

pglogger and utf-8

This is a discussion on pglogger and utf-8 within the Pgsql General forums, part of the PostgreSQL category; --> Hi, I discorver yesterday pgllogger and try to use it. OS: OpenBSD 3.8 DB: postgreSQL 8.1 I have a ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-09-2008, 12:20 PM
=?ISO-8859-1?Q?Pailloncy_Jean-G=E9rard?=
 
Posts: n/a
Default pglogger and utf-8

Hi,

I discorver yesterday pgllogger and try to use it.

OS: OpenBSD 3.8
DB: postgreSQL 8.1
I have a database with UNICODE encondings.
Sometimes in the log of PostgreSQL I got the error:
> LOG: statement: PREPARE <unnamed> AS INSERT INTO apache.log
> (clientaddress,rfc1413,username,"localtime",httpre quest,statuscode,byt
> essenttoclient,referer,clientsoftware,timespent,ca nonname) VALUES
> ($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11)
> LOG: statement: <BIND>
> ERROR: invalid UTF-8 byte sequence detected near byte 0x89


I try to add enconding settings in pglogger.c of the client to ASCII,
but I got always the same error.
I ttry two things:
1) PQexec(conn,"SET CLIENT_ENCODING TO 'SQL_ASCII'");
2) PQsetClientEncoding(conn, "SQL_ASCII");

Any help is welcomed.
Jean-Gérard Pailloncy
---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:17 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com