schema - How do I retrieve the PostgreSQL commands which create the tables and functions in my database? -
i have database have several tables (including data) , functions on. created these tables , functions command line interface.
my question is: there way have database queries creates same tables/functions again in readable format.
postgresql version: 9.1.9
pg_dump --schema-only my_database > my_database.sql
http://www.postgresql.org/docs/current/static/app-pgdump.html
Comments
Post a Comment