Received: from umc.se (qmailr@bookie.umc.se [194.165.232.226]) by hub.org (8.9.3/8.9.3) with SMTP id IAA28455 for ; Wed, 12 Jan 2000 08:50:54 -0500 (EST) (envelope-from mattias@umc.se) Received: (qmail 13423 invoked from network); 12 Jan 2000 13:49:41 -0000 Received: from bookie.umc.se (HELO marge) (root@194.165.232.226) by bookie.umc.se with SMTP; 12 Jan 2000 13:49:41 -0000 To: "Strand Johan F." Cc: pgsql-admin@postgreSQL.org Subject: Re: [ADMIN] Datetypes References: <266FDEFCF2BD22479AC88FCEBF070CBFA5BA@HAN1EXCH01.se.ads.telia.se> From: Mattias Norlander In-Reply-To: "Strand Johan F."'s message of "Wed, 12 Jan 2000 14:35:43 +0100" User-Agent: Gnus/5.0803 (Gnus v5.8.3) XEmacs/21.1 (20 Minutes to Nikko) Date: 12 Jan 2000 14:48:09 +0100 Message-ID: <86iu0z2yg6.fsf@umc.se> Lines: 30 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii I use this to start up my postmaster: su - postgres -c 'export PGDATESTYLE=ISO; postmaster -N 32 -B 256 -i -o "-S 16535 -F" 2>>/var/log/pglog >>/var/log/pglog' >>/dev/null& ... which sets the datestyle to ISO. There is also a sql command called "SET DATESTYLE" but I can't get it to work though... "Strand Johan F." writes: > Hello there ! > > How do I do if I want to change the variable > DATETYPES or PGDATESTYLE to ISO. > I want to se my date column like this 2000-01-12 > and not 01-12-2000 when I do a select on it. > > Thanks > > /Johan > johan.f.strand@telia.se > > ************ > > > -- Mattias Norlander mattias@umc.se