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 b4ebba4

Browse files
authored
Update pg_stat_activity_dump.sh
1 parent f847b5f commit b4ebba4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎DBA/pg_stat_activity_dump.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ order by greatest(state_change_elapsed, query_elapsed, xact_elapsed) desc;
2727
EOF
2828
)
2929

30-
FILE="pg_stat_activity_dump.$(date +%Y-%m-%d_%H%M%S).csv"
30+
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=¤" > $FILE && echo "Dumped to file $FILE"
32+
echo "$SQL" | psql --quiet --no-psqlrc --csv --pset=linestyle=unicode --pset=null=¤" | xz -c -9 > $FILE && echo "Dumped to file $FILE"

0 commit comments

Comments
(0)

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