pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno LEVEQUE <bruno.leveque@net6d.com>
To: pgsql-admin@postgresql.org
Subject: Re: timestamp with timezone
Date: Fri, 12 Sep 2003 21:45:20 +0200
Message-ID: <bjt7nv$7qe$1@news.hub.org> (raw)
In-Reply-To: <20030912174755.46442.qmail@web21105.mail.yahoo.com>
References: <20030912174755.46442.qmail@web21105.mail.yahoo.com>

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 <shan0075@yahoo.com> 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




view thread (5+ messages)  latest in thread

Message-ID: <bjt7nv$7qe$1@news.hub.org>
Permalink:  ../bjt7nv$7qe$1@news.hub.org/
Also on:    postgresql.org/message-id/bjt7nv$7qe$1@news.hub.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: bruno.leveque@net6d.com
  Subject: Re: timestamp with timezone
  In-Reply-To: <bjt7nv$7qe$1@news.hub.org>
  References: <20030912174755.46442.qmail@web21105.mail.yahoo.com> <bjt7nv$7qe$1@news.hub.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox