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

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -