# pg_dump -R -O -x -U user_name -f filename db_name 補足 レンタルサーバーでは、ユーザー名の変更・権限割り当てができない為、以下のオプションが必要。 -R で接続コマンドを無視する。 -O で権限コマンドを無視する。 -x で grant/revoke を無視する。 # psql db_name user_name Password: ****** ←パスワードを入力 Welcome to psql 7.x.xx, the PostgreSQL interactive terminal. Type: \copyright for distribution terms \h for help with SQL commands \? for help on internal slash commands \g or terminate wi