| От | Just Someone |
|---|---|
| Тема | Re: How to find the latest (partial) WAL file |
| Дата | |
| Msg-id | 36932f270604101710t7a401676ue118a3d11e8a9060@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: How to find the latest (partial) WAL file (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-general |
Hi Tom, > If you sort first by mtime and second by file name you should find the > right one in all cases, ie, take the latest mtime among the > properly-named files, breaking ties by taking the higher filename. > > It'd probably be better if we had a function to report this, but > you can get along without one. For now I'm using ls with grep: LAST_WAL=$(/bin/ls -t1p $WAL_DIR | /bin/grep -v / | /bin/grep -v backup | /usr/bin/head -1) But a pg function for that would be great. Regards, Guy Naor. -- Family management on rails: http://www.famundo.com - coming soon! My development related blog: http://devblog.famundo.com
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера