Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id F34E1633267 for ; Thu, 6 May 2010 06:57:53 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 25167-10 for ; Thu, 6 May 2010 09:57:45 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtpcorp.com (smtpcorp.com [67.192.120.76]) by mail.postgresql.org (Postfix) with ESMTP id E4605633256 for ; Thu, 6 May 2010 06:57:46 -0300 (ADT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=smtpcorp.com; s=main; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References:Message-ID:Date:Subject:From:To; bh=OFTOhzOMk+I6AXqQX8SQcS+W/DNK7eM5jOXmB1IDVBQ=; b=M6Is8Ki1uvrPiOpW2I1PZYDxkCaA2FDdg6tuSn8CpOqJlYDKfVC4ml2KcTrBoxTQhprCw7ZiKdHvvEQW/QX+sxZXY3QBRKKCcyAM2TVIRh7sXUXLLIENG+wYjfcPEy5w; Received: from ip-118-90-140-222.xdsl.xnet.co.nz ([118.90.140.222] helo=gonzo) by smtpcorp.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.70) id 1O9xpw-0003o0-45; mid 144 for pgsql-sql@postgresql.org; Thu, 06 May 2010 09:57:20 +0000 Received: from news by gonzo with local (Exim 4.69) (envelope-from ) id 1O9xpm-0003Sd-DY for pgsql-sql@postgresql.org; Thu, 06 May 2010 21:57:34 +1200 To: pgsql-sql@postgresql.org Path: not-for-mail From: Jasen Betts Newsgroups: gmane.comp.db.postgresql.sql Subject: Re: How to get localized to_char(DATE) output Date: 6 May 2010 09:57:34 GMT Organization: Dis (not Dat) Organisation Lines: 22 Message-ID: References: <29894.1273099886@sss.pgh.pa.us> NNTP-Posting-Host: localhost Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: reversiblemaps.ath.cx 1273139854 13095 127.0.0.1 (6 May 2010 09:57:34 GMT) X-Face: ?)Aw4rXwN5u0~$nqKj`xPz>xHCwgi^q+^?Ri*+R(&uv2=E1Q0Zk(>h!~o2ID@6{uf8s; a +M[5[U[QT7xFN%^gR"=tuJw%TXXR'Fp~W; (T"1(739R%m0Yyyv*gkGoPA.$b,D.w:z+<'"=-lVT?6 {T?=R^:W5g|E2#EhjKCa+nt":4b}dU7GYB*HBxn&Td$@f%.kl^:7X8rQWd[NTc"P"u6nkisze/Q; 8 "9Z{peQF,w)7UjV$c|RO/mQW/NMgWfr5*$-Z%u46"/00mx-,\R'fLPe.)^ User-Agent: slrn/pre1.0.0-2 (Linux) X-Smtpcorp-Track: 2184515.1.48213079 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.001 tagged_above=-5 required=5 tests=BAYES_40=-0.001 X-Spam-Level: X-Archive-Number: 201005/17 X-Sequence-Number: 34065 On 2010-05-06, Thomas Kellerer wrote: > Tom Lane, 06.05.2010 00:51: >> Thomas Kellerer writes: >>> I'm trying to get the output of the to_char(date, text) method in German but I can't get it to work: >> >> I think you need 'TMMon' to get a localized month name. >> >> regards, tom lane >> > Ah! Silly me. Now that you write this I can see it in the manual ;) > > The manual says the value for lc_time is OS dependent and indeed "set lc_time = 'German'" does not work on Solaris. > > Is there a way to get a list of allowed values for lc_time for a specific installation? "man -k locale" would be my starting point (for anything POSIXish) Looks like "locale -a" does it on linux, that may be worth a try. "de_DE" is the locale for German as used in Germany.