Re: Fwd: patch: make_timestamp function - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Fwd: patch: make_timestamp function
Date
Msg-id 20140228141117.GT4759@eldon.alvh.no-ip.org
Whole thread Raw
In response to Re: Fwd: patch: make_timestamp function  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: Fwd: patch: make_timestamp function  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-hackers
Pavel Stehule escribió:

> so still I prefer to allow numeric time zones.
> 
> What I can:
> 
> a) disallow numeric only timezone without prefix "+" or "-"
> 
> or
> 
> b) add "+" prefix to time zone, when number is possitive.
> 
> I prefer @a.

I can live with (a) too.  But I wonder if we should restrict the allowed
tz even further, for example to say that there must always be either 2
digits (no colon) or 4 digits, with or without a colon.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services



pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: GiST support for inet datatypes
Next
From: Greg Stark
Date:
Subject: Re: GSoC 2014 - mentors, students and admins