Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 0A2141337B4A for ; Wed, 16 Feb 2011 05:11:56 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 50282-04 for ; Wed, 16 Feb 2011 09:11:49 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) by mail.postgresql.org (Postfix) with ESMTP id E63E71337B34 for ; Wed, 16 Feb 2011 05:11:47 -0400 (AST) Received: from smadev.internal.net (localhost.internal.net [127.0.0.1]) by smadev.internal.net (8.14.2/8.14.2) with ESMTP id p1G9Bjkm001995 for ; Wed, 16 Feb 2011 11:11:45 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) Received: from localhost (localhost [[UNIX: localhost]]) by smadev.internal.net (8.14.2/8.14.2/Submit) id p1G9BjRj001994 for pgsql-admin@postgresql.org; Wed, 16 Feb 2011 11:11:45 +0200 (EET) (envelope-from achill@matrix.gatewaynet.com) From: Achilleas Mantzios Organization: Dynacom Tankers Mgmt To: pgsql-admin@postgresql.org Subject: Re: cp1250 problem Date: Wed, 16 Feb 2011 11:11:44 +0200 User-Agent: KMail/1.9.7 References: <201102151326.58744.achill@matrix.gatewaynet.com> <4D5AF76A.10800@gmx.de> In-Reply-To: <4D5AF76A.10800@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <201102161111.44993.achill@matrix.gatewaynet.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.451 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_BRBL_LASTEXT=1.449 X-Spam-Level: X-Archive-Number: 201102/144 X-Sequence-Number: 36783 =CE=A3=CF=84=CE=B9=CF=82 Wednesday 16 February 2011 00:00:10 =CE=BF/=CE=B7 = Jan-Peter Seifert =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > Hello, >=20 > Am 15.02.2011 12:26, schrieb Achilleas Mantzios: > > =CE=A3=CF=84=CE=B9=CF=82 Tuesday 15 February 2011 12:44:31 =CE=BF/=CE= =B7 Lukasz Brodziak =CE=AD=CE=B3=CF=81=CE=B1=CF=88=CE=B5: > >> Hello, > >> > >> How can I set PostgreSQL locale and encoding to be pl_PL.cp1250 all I > >> can do is pl_PL.UTF-8. > >> I have PG 8.2.4 on Ubuntu 10.04 (polish version). >=20 > There are no code pages in Ubuntu. The nearest what you can get seems to > be encoding LATIN2 ( and a compatible locale ). These charsets are NOT > identical though. >=20 > > The locale for your whole cluster is defined in postgresql.conf. >=20 > Not really - LC_COLLATE and LC_CTYPE are set during initialization of > the cluster by initdb. You can verify the settings with pg_controldata: >=20 That's true. Thanx. > http://www.postgresql.org/docs/8.2/interactive/app-pgcontroldata.html >=20 > As of PostgreSQL v8.4 you can specify these two locale settings > different from the server's settings (for each database). > If you plan to upgrade your PostgreSQL major server version beware of > the removal of some implicit data type casts among other changes as of 8.= 3. >=20 > Peter >=20 >=20 =2D-=20 Achilleas Mantzios