■
pg_dump -p 5432 -U postgres -s --schema=schema_name db_name >create_table.txt
-sはデータ定義(スキーマ)のみdumpのオプション。
標準出力としてcreate_table.txtに出力する。
pg_dumpのオプションについては以下参照。
https://www.postgresql.jp/document/9.3/html/app-pgdump.html
pg_dump -p 5432 -U postgres -s --schema=schema_name db_name >create_table.txt
-sはデータ定義(スキーマ)のみdumpのオプション。
標準出力としてcreate_table.txtに出力する。
pg_dumpのオプションについては以下参照。
https://www.postgresql.jp/document/9.3/html/app-pgdump.html