title: PostgreSQL export only the schema structure
body: <p>I have a Database which has multiple schema, I need to export one of those schema structure to an sql file without the data. Is this possible, if so What command should I use?</p>
  
  <p>When I use this command, I get the data as well, but I have a lot of data which makes the server run out of space for this.</p>
  
  <pre><code>--host xx --port xx --username "xx" --password  --format plain --verbose --file "sample.sql" --schema "sample" "main"
  </code></pre>
  
  <p>I need the structure to restore it in another location. Where I do not need the data but only the structure</p>
  
  <p>I'm quite new to this area, thanks for the help</p>