X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 90ECAD1B4F1 for ; Fri, 12 Sep 2003 20:08:52 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 45949-07 for ; Fri, 12 Sep 2003 17:08:43 -0300 (ADT) Received: from news.hub.org (unknown [64.117.224.194]) by svr1.postgresql.org (Postfix) with ESMTP id B807AD1B4E7 for ; Fri, 12 Sep 2003 17:08:41 -0300 (ADT) Received: from news.hub.org (host-64-117-224-194.altec1.com [64.117.224.194] (may be forged)) by news.hub.org (8.12.9/8.12.9) with ESMTP id h8CK8Psn014532 for ; Fri, 12 Sep 2003 20:08:25 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id h8CJj3H9008023 for pgsql-admin@postgresql.org; Fri, 12 Sep 2003 19:45:03 GMT From: Bruno LEVEQUE X-Newsgroups: comp.databases.postgresql.admin Subject: Re: timestamp with timezone Date: Fri, 12 Sep 2003 21:45:20 +0200 Organization: Hub.Org Networking Services Lines: 63 Message-ID: References: <20030912174755.46442.qmail@web21105.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@news.hub.org User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5b) Gecko/20030827 X-Accept-Language: en-us, en In-Reply-To: <20030912174755.46442.qmail@web21105.mail.yahoo.com> To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/233 X-Sequence-Number: 10321 I think you could choose between two solutions (at least) : 1 - Insert date and time in place of timestamp 2 - use some functions like substring. Something like : select substring('09/12/2003 12:51:31.268 PDT' from '../../.... ..:..:..') Bruno Shankar K wrote: >oops forgot to mention, database version is 7.3.2 > >--- Shankar K wrote: > > >>Folks, >> >>Our databases stores most of the dates as timestamp >>with timezone format, so the data looks like this... >> >>09/12/2003 12:51:31.268 PDT >>09/12/2003 12:50:20 PDT >> >>some has centiseconds in them along with TZ. Now i'm >>wondering is there a way to just extract date and >>timestamp alone leaving the centisecods as well the >>TZ >>part. >> >>does pg_dump utility has any options to trunc this >>while it exports data ? >> >>cheers, >>shankar >> >>__________________________________ >>Do you Yahoo!? >>Yahoo! SiteBuilder - Free, easy-to-use web site >>design software >>http://sitebuilder.yahoo.com >> >> >> > > >__________________________________ >Do you Yahoo!? >Yahoo! SiteBuilder - Free, easy-to-use web site design software >http://sitebuilder.yahoo.com > >---------------------------(end of broadcast)--------------------------- >TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org > > > -- Bruno LEVEQUE System Engineer SARL NET6D bruno.leveque@net6d.com http://www.net6d.com