ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Anatoliy Lisjutin <SilverFox@mail.rgantd.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] postgresql 8.1.8 и  трабл с ILIKE
Date: Fri, 6 Jun 2008 11:37:21 +0400
Message-ID: <200806061137.21260.SilverFox@mail.rgantd.ru> (raw)
In-Reply-To: <4847DB69.5000504@rattler.kiev.ua>

В сообщении от 5 июня 2008 Michael Bochkaryov написал(a):
> Anatoliy Lisjutin пишет:
> > В сообщении от 5 июня 2008 Anatoliy Lisjutin написал(a):
> >> Помогите люди добрые!
> >> Это база http://rgantd.ru/grad/index.html , сами убедитесь.
> >
> > Я там и весь запрос на echo вывел. Так что все видно.
>
> 1. Какая кодировка установлена для базы?
> Посмотреть можно в psql командой \l.
sfox=# \l
        List of databases
   Name    |  Owner   | Encoding
-----------+----------+----------
 grad      | sfox     | WIN1251
 postgres  | postgres | UTF8
 sfox      | postgres | UTF8
 template0 | postgres | UTF8
 template1 | postgres | UTF8

>
> 2. Какая локаль установлена для кластера БД?
> grep -i lc_ /var/lib/pgsql/data/postgresql.conf
# grep -i lc_ /var/lib/pgsql/data/postgresql.conf
lc_messages = 'ru_RU.UTF-8'                     # locale for system error 
message
lc_monetary = 'ru_RU.UTF-8'                     # locale for monetary 
formatting
lc_numeric = 'ru_RU.UTF-8'                      # locale for number 
formatting
lc_time = 'ru_RU.UTF-8'                         # locale for time 
formatting
>
> Подозреваю, что в несовпадении этих параметров все дело.
Вы правы . Это так.    А для конкретной базы grad  я не могу все эти lc_ 
проставить? Из psql я их всех пытался устанавливать , но они  глобально 
для всеех баз из конфига ставятся ? А только для одной базы можно? По show 
all tot некоторые lc_ видятся. Пытался их переставлять в WIN1251 , потом 
посмотрю - опять UTF.

>
> Ну, или клиент заявляет одну кодировку, а использует другую.



-- 
With my best regards to you !!
http://rusarchives.ru http://rgantd.ru http://victory.rusarchives.ru
SilverFox@mail.rgantd.ru

  reply	other threads:[~2008-06-06  7:37 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-05 10:36 Anatoliy Lisjutin
2008-06-05 10:55 ` Anatoliy Lisjutin
2008-06-05 12:26   ` Michael Bochkaryov
2008-06-06  7:37     ` Anatoliy Lisjutin [this message]
2008-06-06  8:02       ` Anatoliy Lisjutin
2008-06-06  8:11         ` Anatoliy Lisjutin
2008-06-06  9:27           ` Alex Gorbachenko
2008-06-06  9:48             ` Anatoliy Lisjutin
2008-06-06 11:22               ` Alex Gorbachenko
2008-06-06 13:30                 ` Michael Bochkaryov
2008-06-09  4:24                   ` Alexey Novikov
2008-06-10 11:05                     ` Anatoliy Lisjutin
2008-06-10 10:33                   ` Anatoliy Lisjutin
2008-06-11  9:04                 ` Anatoliy Lisjutin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200806061137.21260.SilverFox@mail.rgantd.ru \
    --to=silverfox@mail.rgantd.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git