| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com> |
| Cc: | Brendan Jurd <direvus(at)gmail(dot)com>, Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>, pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: Patch for SQL-Standard Interval output and decoupling DateStyle from IntervalStyle |
| Date: | 2008-11-08 19:42:26 |
| Message-ID: | 20449.1226173346@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com> writes:
> Tom Lane wrote:
>> There isn't any way to do that, unless you have a time machine in
>> your hip pocket. The trouble with putting
>> set intervalstyle = something;
>> into the dump script is that older servers will (by default) report
>> an error on that line and keep right on chugging.
> Not necessarily. Couldn't we put
> select * from (select substring(version() from '[0-9\.]+') as version) as a
> join (select generate_series(0,100000000000)) as b on(version<'8.4');
> set intervalstyle = something;
> Or something similar in the dump file.
[ shrug... ] It's still just one easily missable bleat.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ron Mayer | 2008-11-08 19:44:27 | Re: Patch for SQL-Standard Interval output and decoupling DateStyle from IntervalStyle |
| Previous Message | Ron Mayer | 2008-11-08 19:39:31 | Re: Patch for SQL-Standard Interval output and decoupling DateStyle from IntervalStyle |