Received: from maia.hub.org (maia-1.hub.org [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 7EB7D633332 for ; Thu, 6 May 2010 11:22:18 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 22523-10 for ; Thu, 6 May 2010 14:22:02 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 1ECD5632EF2 for ; Thu, 6 May 2010 11:22:10 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o46EM8Ki016104; Thu, 6 May 2010 10:22:08 -0400 (EDT) To: Thomas Kellerer cc: pgsql-sql@postgresql.org Subject: Re: How to get localized to_char(DATE) output In-reply-to: References: <29894.1273099886@sss.pgh.pa.us> Comments: In-reply-to Thomas Kellerer message dated "Thu, 06 May 2010 12:46:00 +0200" Date: Thu, 06 May 2010 10:22:07 -0400 Message-ID: <16103.1273155727@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201005/19 X-Sequence-Number: 34067 Thomas Kellerer writes: > Jasen Betts, 06.05.2010 11:57: >>> Is there a way to get a list of allowed values for lc_time for a specific installation? >> Looks like "locale -a" does it on linux, that may be worth a try. > Thanks for the answer. Is there a way to get this information from within a SQL statement? No. Postgres doesn't know anything about that. "locale -a" should work on pretty much any Unix-ish system, but I dunno what the equivalent on Windows would be. regards, tom lane