pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mitch Vincent <mitch@venux.net>
To: pgsql-general@postgresql.org
To: dederer@spb.cityline.ru
To: Neil Conway <nconway@klamath.dyndns.org>
Subject: Re: Bug with timestamp !!!
Date: Sun, 13 May 2001 01:00:23 -0400
Message-ID: <004b01c0db69$9dfee2b0$0200000a@windows> (raw)
References: <9dj2rq$1ij$1@news.tht.net>
	<20010513000925.A413@klamath.dyndns.org>
	<20010513005311.A505@klamath.dyndns.org>

ipa=# select version();
                               version                               
---------------------------------------------------------------------
 PostgreSQL 7.1.1 on i386-unknown-freebsd4.2, compiled by GCC 2.95.2
(1 row)
ipa=# create table tmp (create_date    timestamp);
CREATE
ipa=# insert into tmp values('2001-04-01 02:29:52');
INSERT 295890 1
ipa=# select * from tmp;
         create_date          
------------------------------
 Tue May 29 02:34:00 2035 EDT
(1 row)

I have datestyle set to postgres -- is that why this happened? 

-Mitch

----- Original Message ----- 
From: "Neil Conway" <nconway@klamath.dyndns.org>
To: <pgsql-general@postgresql.org>; <dederer@spb.cityline.ru>
Sent: Sunday, May 13, 2001 12:53 AM
Subject: Re: Bug with timestamp !!!


> Sorry, that last post was a slip of the finger.
> 
> What I meant to say was:
> 
> I followed the same steps below on 7.1.0 (Linux),
> and got this:
> 
>       create_date
> ------------------------
>  2001-04-01 03:29:52-04
> (1 row)
> 
> (i.e. 1 hour off)
> 
> I'm not using any strange locale settings or multibyte
> stuff.
> 
> Weird...
> 
> Cheers,
> 
> Neil
> 
> On Sun, May 13, 2001 at 12:09:25AM -0400, Neil Conway wrote:
> > On Sat, May 12, 2001 at 02:23:30PM +0400, Alexander Dederer wrote:
> > > Look this:
> > > create table tmp (create_date    timestamp);
> > > 
> > > #insert into tmp values('2001-04-01 02:29:52');
> > > INSERT 1021715 1
> > > 
> > > #select * from tmp;
> > >       create_data
> > > ------------------------
> > >  2035-05-29 01:33:36-05
> > > (1 row)
> > > 
> > > ! ! ! !
> > > It's work on FreeBSD 4.2. PostgreSQL install from:
> > > postgresql-7.1.1.tar.gz
> > > postgresql-base-7.1.1.tar.gz
> > > postgresql-opt-7.1.1.tar.gz
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
> 
> http://www.postgresql.org/users-lounge/docs/faq.html
> 




view thread (11+ messages)  latest in thread

Message-ID: <004b01c0db69$9dfee2b0$0200000a@windows>
Permalink:  ../004b01c0db69$9dfee2b0$0200000a@windows/
Also on:    postgresql.org/message-id/004b01c0db69$9dfee2b0$0200000a@windows

 · 

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: mitch@venux.net, pgsql-general@postgresql.org, dederer@spb.cityline.ru, nconway@klamath.dyndns.org
  Subject: Re: Bug with timestamp !!!
  In-Reply-To: <004b01c0db69$9dfee2b0$0200000a@windows>
  References: <9dj2rq$1ij$1@news.tht.net> <20010513000925.A413@klamath.dyndns.org> <20010513005311.A505@klamath.dyndns.org> <004b01c0db69$9dfee2b0$0200000a@windows>

* 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