pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michelle Murrain <tech@murrain.net>
To: pgsql-admin@postgresql.org
Subject: Date formats
Date: Mon, 26 May 2003 13:20:16 -0400
Message-ID: <a05200e91baf7fc1c56d0@[66.152.196.38]> (raw)

In doing an upgrade (I'm using Debian testing, and a recent 
dist-upgrade included an upgrade to 7.3.2), I must have messed up the 
date/time format - because one table did not automatically restore, 
and in trying to restore that table from my own backup, it is giving 
me the error "Bad Timestamp external representation"

I thought I was being careful to pick the right formats during the 
upgrade,  but obviously I screwed up.

How can I fix this (besides writing a script to just insert the 
records sans timestamp or converting the timestamp)?

1) the old timestamp format is MM/DD/YYYY hh:mm:ss

How can I find out what the new format is? Can I convert it to the 
old (by doing an new initdb?)

Thanks for any tips!
-- 
.Michelle

--------------------------
Michelle Murrain, Technology Consulting
tech at murrain dot net     http://www.murrain.net
413-253-2874 ph
413-222-6350 cell
413-825-0288 fax
AIM:pearlbear0 Y!:pearlbear9 ICQ:129250575
SMS: 4132226350 at messaging dot sprintpcs dot com

"I am determined to cultivate only thoughts that increase trust and 
love, to use my hands to perform only deeds that build community, to 
speak only words of harmony and aid." - Thich Nhat Hanh



view thread (2+ messages)  latest in thread

Message-ID: <a05200e91baf7fc1c56d0@[66.152.196.38]>
Permalink:  ../a05200e91baf7fc1c56d0@%5B66.152.196.38%5D/
Also on:    postgresql.org/message-id/a05200e91baf7fc1c56d0@[66.152.196.38]

 · 

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: tech@murrain.net
  Subject: Re: Date formats
  In-Reply-To: <a05200e91baf7fc1c56d0@[66.152.196.38]>
  References: <a05200e91baf7fc1c56d0@[66.152.196.38]>

* 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