Tom Lane wrote:
Ron Mayer <[EMAIL PROTECTED]> writes:
interval ... "sql_standard"..."iso_8601"...
"backward_compatible" ...depends... on ... DateStyle...

...How about decoupling interval_out's behavior
from DateStyle altogether, and instead providing values of IntervalStyle
that match all the previous behaviors?

Great.  That seems much more sane.

Any desired names for the existing interval styles?

Currently we output intervals in these two styles:
 '1 year 2 mons 3 days 04:05:06'
 when the DateStyle is iso.
and
 '@ 1 year 2 mons 3 days 4 hours 5 mins 6 secs'
 when the DateStyle is sql or postgres, etc.

I'm not quite sure where those styles came from so
don't know what good names for them might be.

Should those ECPG functions be made identical ...
...
The palloc and elog dependencies seem to be the hard part.

Interesting.   So EncodeDateTime and EncodeInterval, guessing 400 or
so lines, seem sharable since at first glance they either already do or
easily could make their callers deal with all allocation and logging.

Agreed that it's a independent patch that I'll try separately.


--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Reply via email to