Re: about EncodeDateTime() arguments

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: about EncodeDateTime() arguments
Date: 2012-03-13 21:26:26
Message-ID: 16200.1331673986@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> On lr, 2012-03-10 at 18:47 -0500, Tom Lane wrote:
>> It appears to me that null-ness of tzp and tzn are used as a 3-way flag
>> to identify the style of timezone output wanted (none, numeric, or alpha).

> It's not quite a three-way flag, because it also depends on the style,
> which time zone style is used. But I liked the idea of making "print
> the time zone" more explicit and getting rid of the funny pointers. I
> added a bit of documentation and code deduplication in the attached
> patch, and it already looks much more understandable.

Yeah, looks nicer to me too.

Should we propagate this fix into ecpg's copy of the code as well?
I'm not sure how far the backend has diverged from that copy.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Stark 2012-03-13 21:28:33 Re: pg_upgrade and statistics
Previous Message Andres Freund 2012-03-13 21:06:46 Re: Command Triggers, patch v11