pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guillaume Cottenceau <gc@mnc.ch>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: 'now' is sometimes not now - but current_timestamp is
Date: 13 Oct 2006 16:27:22 +0200
Message-ID: <87irioguk5.fsf@meuh.mnc.lan> (raw)
In-Reply-To: <29408.1160748863@sss.pgh.pa.us>
References: <87pscwk65j.fsf@meuh.mnc.lan>
	<29408.1160748863@sss.pgh.pa.us>

Tom Lane <tgl 'at' sss.pgh.pa.us> writes:

> If you are going to copy the implementation of CURRENT_TIMESTAMP,
> you should at least copy it accurately.  (Hint: the cast from
> text to timestamp is not immutable.)  But why are you not just
> using CURRENT_TIMESTAMP, rather than trying to outsmart the system?

I was just trying to use what is best and wrongly picked up
'now'::TIMESTAMP WITH TIME ZONE. I know now this was wrong :), I
only claimed that maybe the table description was a little
misleading (I know the difference was the ::text cast but for a
non postgresql expert, it didn't look crucial).

-- 
Guillaume Cottenceau
Create your personal SMS or WAP Service - visit http://mobilefriends.ch/



view thread (3+ messages)

Message-ID: <87irioguk5.fsf@meuh.mnc.lan>
Permalink:  ../87irioguk5.fsf@meuh.mnc.lan/
Also on:    postgresql.org/message-id/87irioguk5.fsf@meuh.mnc.lan

 · 

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-jdbc@postgresql.org
  Cc: gc@mnc.ch, tgl@sss.pgh.pa.us
  Subject: Re: 'now' is sometimes not now - but current_timestamp is
  In-Reply-To: <87irioguk5.fsf@meuh.mnc.lan>
  References: <87pscwk65j.fsf@meuh.mnc.lan> <29408.1160748863@sss.pgh.pa.us> <87irioguk5.fsf@meuh.mnc.lan>

* 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