| От | Andrew Dunstan |
|---|---|
| Тема | Re: log_filename_prefix --> log_filename + strftime() |
| Дата | |
| Msg-id | 412F88BE.7020609@dunslane.net обсуждение исходный текст |
| Ответ на | Re: log_filename_prefix --> log_filename + strftime() (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-patches |
Tom Lane wrote: >"Ed L." <pgsql@bluepolka.net> writes: > > >>On Friday August 27 2004 12:41, Tom Lane wrote: >> >> >>>BTW, as long as we are taking Apache as the de facto standard --- does >>>the default of "postgresql-%Y-%m-%d_%H%M%S.log" actually make sense, or >>>would something different be closer to the common practice with Apache? >>> >>> > > > >>I should say, Apache rotatelogs takes a configurable filename and then >>appends ".N" where N is the logfile start time epoch. In one case, its >>access_log.N, in another its error_log.N. >> >> > >Hmm ... there isn't any way to emulate that with strftime escapes, >unless I missed the right one. > > > > According to my Linux man page, the Olsen library has %s for that. I don't see it in src/timezone/strftime.c, though cheers andrew
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера