Is there a way to copy the structure of a table into a new table, without data, including all keys and constraints?
For a simple schema copy use the like clause.
CREATE TABLE new_table_name ( like old_table_name including all)