In a similar vein to this question, how would I do a schema-only dump in PostgreSQL?
pg_dump --schema-only
If you only want the CREATE TABLE statements, then you can do pg_dump -s databasename | awk 'RS="";/CREATE TABLE[^;]*;/'
CREATE TABLE
pg_dump -s databasename | awk 'RS="";/CREATE TABLE[^;]*;/'