| От | Ed L. |
|---|---|
| Тема | Re: log_filename_prefix --> log_filename + strftime() |
| Дата | |
| Msg-id | 200409201745.01628.pgsql@bluepolka.net обсуждение исходный текст |
| Ответ на | Re: log_filename_prefix --> log_filename + strftime() (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: log_filename_prefix --> log_filename + strftime()
|
| Список | pgsql-patches |
On Monday September 20 2004 5:39, Tom Lane wrote: > "Ed L." <pgsql@bluepolka.net> writes: > > + /* > > + * We expect a strftime(%z) result of the form "[+-]HHMM" > > according to + * RFC822-conformant dates, where HH:MM is the > > unsigned UTC offset. + * If we don't get it, just return zero > > offset, and let the logs + * rotate on UTC time boundaries. > > + */ > > + > > + count = strftime(msg, 6, "%z", localtime(&now)); > > That might work for you, but it's not portable. Bummer. Typo as well. Suggest a portable way to get the offset? Ed
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера