pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
help from Portugal
2+ messages / 2 participants
[nested] [flat]

* help from Portugal
@ 2003-10-30 08:40 Pedro Miguel Guedes <pmg01@netc.pt>
  2003-10-30 22:31 ` Re: help from Portugal Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: Pedro Miguel Guedes @ 2003-10-30 08:40 UTC (permalink / raw)
  To: pgsql-admin

I have a crazy problem here.
Nobody seems to known why.
I am not a database expert nor do known much about
Postgres.
I am just a system administrator trying to move a database from
one system to another.
O the old system (slackware linux) the postgres was downloaded
an compiled from source.
O the new system (Red Hat 9.0) the postgres was installed from
rpm precompiled binaries.
Everything seemed ok.
I pg_dump from the original.
I createdb anf pg_restore on the destination.

On the old system I did the query:
SELECT * FROM contactos WHERE empresa_nome ILIKE ´%nestlé%´;

and it did work
O the new system it does not produce nothing!???

if I do
SELECT * FROM contactos WHERE empresa_nome ILIKE ´%NESTLÈ%´;
it works!

For queried material where accent on letters does not matter like NISA/nisa
there are no problems with the query.

The problem seems to be on accent on letters. So I thought maybe some stuff
on charsets/encoding and I tried all the advices on the html/docs changing
database and client encodings to LATIN1 (it was SQL_ASCII) to no help.
Environ var like LANG and LC_ALL equal "pt_PT" on /etc/init.d/postgres.

The guys who did the programming on the dadbase do not known any clues.
Me, has I said, I am not expert and I a bit lost not knowing what to do
next.

Do you have any ideas?

Thanks for any help

Pedro Guedes
PORTUGAL
pmg01@netc.pt





^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: help from Portugal
  2003-10-30 08:40 help from Portugal Pedro Miguel Guedes <pmg01@netc.pt>
@ 2003-10-30 22:31 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2003-10-30 22:31 UTC (permalink / raw)
  To: Pedro Guedes <pmg01@netc.pt>; +Cc: pgsql-admin

Pedro Miguel Guedes <pmg01@netc.pt> writes:
> On the old system I did the query:
> SELECT * FROM contactos WHERE empresa_nome ILIKE ´%nestlé%´;
> and it did work
> O the new system it does not produce nothing!???

I think you have the wrong locale setting in your new database.  The
database locale (at least LC_COLLATE and LC_CTYPE) is frozen at initdb
time.  It seems likely that you initdb'd with the wrong settings.
(pg_controldata can help you check this for sure.)

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-10-30 22:31 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-10-30 08:40 help from Portugal Pedro Miguel Guedes <pmg01@netc.pt>
2003-10-30 22:31 ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox