Re: Planning counters in pg_stat_statements - Mailing list pgsql-hackers

From legrand legrand
Subject Re: Planning counters in pg_stat_statements
Date
Msg-id 1522600405697-0.post@n3.nabble.com
Whole thread Raw
In response to Re: [HACKERS] Planning counters in pg_stat_statements  (Thomas Munro <thomas.munro@enterprisedb.com>)
Responses Re: Planning counters in pg_stat_statements
List pgsql-hackers
Hello,

When testing this patch on my WIN1252 database with my java front end, using
11devel snapshot
 I get 
  org.posgresql.util.PSQLException: ERROR: character with byte sequence 0x90
in encoding 
  "WIN1252" has no equivalent in encoding "UTF8"

When using psql with client_encoding = WIN1252, query text are truncated:

postgres=# select pg_stat_statements_reset();
 pg_stat_statements_reset
--------------------------

(1 row)


postgres=# show client_encoding;
 client_encoding
-----------------
 WIN1252
(1 row)


postgres=# select substr(query,1,20) from pg_stat_statements;
       substr
--------------------
 tatements_reset();
 ding;
(2 rows)

Regards
PAscal



--
Sent from: http://www.postgresql-archive.org/PostgreSQL-hackers-f1928748.html


pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: [HACKERS] PATCH: multivariate histograms and MCV lists
Next
From: legrand legrand
Date:
Subject: Re: Diagonal storage model