Re: Patch for SQL-Standard Interval output and decoupling DateStyle from IntervalStyle
В списке pgsql-hackers по дате отправления:
| От | Ron Mayer |
|---|---|
| Тема | Re: Patch for SQL-Standard Interval output and decoupling DateStyle from IntervalStyle |
| Дата | |
| Msg-id | 4915035D.60009@cheapcomplexdevices.com обсуждение исходный текст |
| Ответ на | Re: Patch for SQL-Standard Interval output and decoupling DateStyle from IntervalStyle (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-hackers |
Tom Lane wrote: > > ISO date format is read the same regardless of recipient's datestyle, > so pg_dump solves this by forcing the dump to be made in ISO style. > The corresponding solution for intervals will be to dump in POSTGRES > style, not SQL_STANDARD style, which seems a bit unfortunate. [reading pg_dump.c now] I wonder if it could be similar to standard_conforming_strings where it appears to be reading the current value and setting it to whatever the user chose in the beginning of pg_dump. Then we could dump in whichever intervalstyle the user prefers. Or, for 8.4+ dumps we could even force "set intervalstyle = sql_standard;" in the top of the dump file. For dumps of 8.3 or less we'd need the non-standard style anyway it seems. If this seems sane, I can try experimenting with it tonight.
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера