Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b2341a0

Browse files
authored
Update pg_stat_activity_dump.sh
1 parent b8f7e15 commit b2341a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎DBA/pg_stat_activity_dump.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ EOF
2929

3030
FILE="pg_stat_activity_dump.$(date +%Y-%m-%d_%H%M%S).csv.xz"
3131

32-
echo "$SQL" | psql --quiet --no-psqlrc --csv --pset=linestyle=unicode --pset=null=¤" | xz -c -9 > $FILE && echo "Dumped to file $FILE"
32+
echo "$SQL" | psql --quiet --no-psqlrc --csv --pset=linestyle=unicode --pset=null=¤" | xz -c -9 -e > $FILE && echo "Dumped to file $FILE"
3333
3434
# как посмотреть протоколы в консоли?
3535
# xz -dkc pg_stat_activity_dump.2024年11月01日_124807.csv.xz | pspg --csv

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /