Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XCxRT-0007jg-Qs for pgsql-admin@arkaria.postgresql.org; Thu, 31 Jul 2014 20:59:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XCxRT-0003hE-9o for pgsql-admin@arkaria.postgresql.org; Thu, 31 Jul 2014 20:59:15 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XCxRR-0003h1-4a; Thu, 31 Jul 2014 20:59:13 +0000 Received: from mail.journyx.com ([209.163.206.41] helo=mail.int.journyx.com) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XCxRM-0006AV-LS; Thu, 31 Jul 2014 20:59:10 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.int.journyx.com (Postfix) with ESMTP id F37DF31D40F; Thu, 31 Jul 2014 15:59:05 -0500 (CDT) Received: from mail.int.journyx.com ([127.0.0.1]) by localhost (mail.int.journyx.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id RzpEQdTlnpy1; Thu, 31 Jul 2014 15:59:01 -0500 (CDT) Received: from localhost (localhost [127.0.0.1]) by mail.int.journyx.com (Postfix) with ESMTP id C23CC31D483; Thu, 31 Jul 2014 15:59:01 -0500 (CDT) X-Virus-Scanned: amavisd-new at mail.int.journyx.com Received: from mail.int.journyx.com ([127.0.0.1]) by localhost (mail.int.journyx.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 77zYYk-IGPas; Thu, 31 Jul 2014 15:59:01 -0500 (CDT) Received: from mail.int.journyx.com (zimbra.int.journyx.com [192.168.100.5]) by mail.int.journyx.com (Postfix) with ESMTP id 9ACE331D46C; Thu, 31 Jul 2014 15:59:01 -0500 (CDT) Date: Thu, 31 Jul 2014 15:59:01 -0500 (CDT) From: Scott Whitney Reply-To: Scott Whitney To: "Denise CTR NSWCDD Ferrell, Z11" Cc: pgsql-admin@postgresql.org, pgsql-performance@postgresql.org Message-ID: <1622232859.705946.1406840341509.JavaMail.zimbra@mail.int.journyx.com> In-Reply-To: <2BC18916DE4BF141AC1EFC55CE2CAE7D431EB7@NAEANRFKXM01V.nadsusea.nads.navy.mil> References: <2BC18916DE4BF141AC1EFC55CE2CAE7D431EB7@NAEANRFKXM01V.nadsusea.nads.navy.mil> Subject: Re: Setting a default format for timestamp MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.100.188] X-Mailer: Zimbra 8.0.7_GA_6021 (ZimbraWebClient - GC36 (Win)/8.0.7_GA_6021) Thread-Topic: Setting a default format for timestamp Thread-Index: Ac+tAAWyDQrEQCdhRkyNG5vsfNTUs/+zKRug X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org _Where_ do you want that default format? Are you asking about a field? psql output? The O/S? What you're asking might be as simple as "datestyle," if you're just talking the output mask: http://www.postgresql.org/docs/9.1/static/runtime-config-client.html DateStyle ( string ) Sets the display format for date and time values, as well as the rules for interpreting ambiguous date input values. For historical reasons, this variable contains two independent components: the output format specification ( ISO , Postgres , SQL , or German ) and the input/output specification for year/month/day ordering ( DMY , MDY , or YMD ). These can be set separately or together. The keywords Euro and European are synonyms for DMY ; the keywords US , NonEuro , and NonEuropean are synonyms for MDY . See Section 8.5 for more information. The built-in default is ISO, MDY , but initdb will initialize the configuration file with a setting that corresponds to the behavior of the chosen lc_time locale. ----- Original Message ----- > Hi All, > Using PostgreSQL 9.3 on Linux Red-Hat platform. > How would I go about setting a default format for the timestamp? I've set the > default for TimeZone to UTC. > Thank you in advance for any information. > DF > -- > Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-admin -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin