pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shankar K <shan0075@yahoo.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: timestamp with timezone
Date: Fri, 12 Sep 2003 18:36:52 -0700 (PDT)
Message-ID: <20030913013652.64956.qmail@web21102.mail.yahoo.com> (raw)
In-Reply-To: <434.1063411750@sss.pgh.pa.us>

> You mean you want to round off to even seconds?  Try
> date_trunc,
> or cast to "timestamp(0) with time zone".  

well, i just need to trunc whatever thats after the
timestamp i.e from 06/10/2003 12:50:19.188 PDT, i need
to remove .188 PDT

i'll see if date_trunc helps me or not. thanks for the
suggestions tom.

>To force stuff to be
> rounded when it's stored, declare the column like
> that in the
> first place.
>
yeah, i wish the 3rd party apps had 'timestamp without
timezone' as the default for all date columns but it
isn't :(

anyways, reason behind the whole truncating TZ is
that, we basically copy the data from postgres to
oracle on a nightly batch process for our data
warehousing requirements, but oracle upto 8.1.7.x
doesn't support timestamp with timezone datatype, so
we are kind of stuck with spooling required
tables/formating dates to oracle compatible formats
and then use sql*loader to upload the data into
oracle.

not sure how well i can imporve this whole ETL
process. Any suggestions are greatly appreciated.

Thanks
Shankar

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com



view thread (5+ messages)

Message-ID: <20030913013652.64956.qmail@web21102.mail.yahoo.com>
Permalink:  ../20030913013652.64956.qmail@web21102.mail.yahoo.com/
Also on:    postgresql.org/message-id/20030913013652.64956.qmail@web21102.mail.yahoo.com

 · 

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: shan0075@yahoo.com, tgl@sss.pgh.pa.us
  Subject: Re: timestamp with timezone
  In-Reply-To: <20030913013652.64956.qmail@web21102.mail.yahoo.com>
  References: <434.1063411750@sss.pgh.pa.us> <20030913013652.64956.qmail@web21102.mail.yahoo.com>

* 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