Re: No. Of wal files generated

Поиск
Список
Период
Сортировка
От Achilleas Mantzios - cloud
Тема Re: No. Of wal files generated
Дата
Msg-id 39fb36d5-1583-49ba-98ae-d71002fedb65@cloud.gatewaynet.com
обсуждение исходный текст
Ответ на No. Of wal files generated  (Atul Kumar <akumar14871@gmail.com>)
Список pgsql-general


On 3/7/25 17:59, Atul Kumar wrote:
Hi,

Please could you help me by sharing any redhat linux command through which I can count the no. of wal files and no. of ".ready" files generated in last 10 minutes.

Do you have wal archiving enabled? If yes, then simply go to the archive dir and suit your self with

find , ls, grep, awk, sort , unic -c , etc .

Find files created in the last 10 mins :

find -cmin 10

to get statistics over time :

***CLOUD*** jboss@sma:/smadb/smadb/pgsql/pitr$ ls -lt | head -10
total 629962796
-rw------- 1 postgres postgres 16777216 Mar 10 09:32 000000010000472D00000078
-rw------- 1 postgres postgres 16777216 Mar 10 09:32 000000010000472D00000077
-rw------- 1 postgres postgres 16777216 Mar 10 09:32 000000010000472D00000076
-rw------- 1 postgres postgres 16777216 Mar 10 09:32 000000010000472D00000075

...

you may use :

ls -lt | awk '{print $6""$7"_"substr($8,1,2) }' | sort | uniq -c | less

to get the distribution over (group by) 1 hour intervals




Regards,
Atul

В списке pgsql-general по дате отправления: