Re: No. Of wal files generated - Mailing list pgsql-general

From Achilleas Mantzios - cloud
Subject Re: No. Of wal files generated
Date
Msg-id 39fb36d5-1583-49ba-98ae-d71002fedb65@cloud.gatewaynet.com
Whole thread Raw
In response to No. Of wal files generated  (Atul Kumar <akumar14871@gmail.com>)
List 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 by date:

Previous
From: Laurenz Albe
Date:
Subject: Re: exclusion constraint question
Next
From: Achilleas Mantzios - cloud
Date:
Subject: Re: exclusion constraint question