Received: from maia.hub.org (maia-4.hub.org [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 4F11F632C94 for ; Wed, 5 May 2010 19:26:24 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 40813-01 for ; Wed, 5 May 2010 22:26:16 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mail.postgresql.org (Postfix) with ESMTP id A78BB6329F4 for ; Wed, 5 May 2010 19:26:16 -0300 (ADT) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1O9n2j-0002gb-BU for pgsql-sql@postgresql.org; Thu, 06 May 2010 00:26:13 +0200 Received: from ppp-188-174-22-130.dynamic.mnet-online.de ([188.174.22.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 May 2010 00:26:13 +0200 Received: from spam_eater by ppp-188-174-22-130.dynamic.mnet-online.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 May 2010 00:26:13 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-sql@postgresql.org connect(): No such file or directory From: Thomas Kellerer Subject: How to get localized to_char(DATE) output Date: Thu, 06 May 2010 00:26:04 +0200 Lines: 36 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ppp-188-174-22-130.dynamic.mnet-online.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.011 tagged_above=-5 required=5 tests=BAYES_20=-0.001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201005/14 X-Sequence-Number: 34062 Hi, I'm trying to get the output of the to_char(date, text) method in German but I can't get it to work: My understanding is, that I need to set lc_time for the session in order to change the language used by to_char(), but this does not seem to work for me: postgres=> select version(); version ------------------------------------------------------------- PostgreSQL 8.4.3, compiled by Visual C++ build 1400, 32-bit (1 Zeile) postgres=> select to_char(current_date, 'Mon'); to_char --------- May (1 Zeile) postgres=> set lc_time = 'German'; SET postgres=> select to_char(current_date, 'Mon'); to_char --------- May (1 Zeile) postgres=> Postgres' messages are in German, but not the output of to_char() After changing lc_time to 'German' I would have expected 'Mai' instead of 'May' What am I mising? Regards Thomas