Skip site navigation (1) Skip section navigation (2)

Re: Interval input: usec, msec

From: Michael Glaesemann <grzm(at)seespotcode(dot)net>
To: Neil Conway <neilc(at)samurai(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-patches(at)postgresql(dot)org
Subject: Re: Interval input: usec, msec
Date: 2007-05-29 12:49:49
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-patches
On May 29, 2007, at 0:06 , Neil Conway wrote:

> Applied to HEAD, backported to 8.2 and 8.1

One thing I noticed when looking over the patch is that there are a  
few bare numbers in datetime.c such as 100000, 1000, 1e-3, and 1e-6.  
In timestamp.[hc] we've defined macros for conversions such as  
#define #define USECS_PER_SEC	INT64CONST(1000000)

I'd like to work up a patch that would add similar macros for  
datetime.c, in particular using the INT64CONST construction where  
appropriate. Thoughts?

Michael Glaesemann
grzm seespotcode net

In response to

pgsql-patches by date

Next:From: Zdenek KotalaDate: 2007-05-29 13:55:27
Subject: Re: [pgsql-patches] Ctid chain following enhancement
Previous:From: Les HillDate: 2007-05-29 12:31:58
Subject: OS X startup script patch

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group