Received: from golem.jpl.nasa.gov (IDENT:postfix@dialin-110.jpl.nasa.gov [128.149.231.110]) by hub.org (8.10.1/8.10.1) with ESMTP id e6S2l5A24261 for ; Thu, 27 Jul 2000 22:47:06 -0400 (EDT) Received: from alumni.caltech.edu (localhost.localdomain [127.0.0.1]) by golem.jpl.nasa.gov (Postfix) with ESMTP id BB5337F0B; Fri, 28 Jul 2000 02:48:37 +0000 (UTC) Message-ID: <3980F485.93FB698D@alumni.caltech.edu> Date: Fri, 28 Jul 2000 02:48:37 +0000 From: Thomas Lockhart Organization: Yes X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.15-4mdksmp i686) X-Accept-Language: en MIME-Version: 1.0 To: "George P. Esperanza" Cc: pgsql-interfaces@postgresql.org Subject: Re: Changing Default date format References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/197 > How do i change the default (ISO) date/time format to (Postgres) format? > I need to 'SET DATESTYLE TO Postgres' for every session, is there a way > to set this permanently? http://postgresql.org/docs/postgres/x1137.htm sez: There are several ways to affect the appearance of date/time types: The PGDATESTYLE environment variable used by the backend directly on postmaster startup. The PGDATESTYLE environment variable used by the frontend libpq on session startup. SET DATESTYLE SQL command. These should be sufficient. You can also adjust a #define in a header file and rebuild Postgres. Look for something with "DATESTYLE" in the include directories. - Thomas