フォロー

pg_dumpでデータの中身は不要なテーブルをアレするオプション 

${PG_PATH}/bin/pg_dump \
-h ${DB_SRV} \
-U postgres \
--schema public \
--create \
--no-unlogged-table-data \
-j 4 \
-Z 9 \
--verbose \
--no-tablespaces \
--exclude-table='tt_block_*' --exclude-table='tt_mute' \
--format=directory \
--file=${BAKDIR}/monthly/${DT} \
${BAKDB}
となってるわね。

publicスキーマをそのまま使うな高校校歌が演奏されてしまう。

いや、でも、これ、本当は--exclude-tableじゃなくて、--exclude-table-dataを使うべきだな。

ログインして会話に参加
:realtek:

思考の /dev/null