title: Get definition of function, sequence, type etc. in Postgresql with SQL query
body: <p>I need the create scripts for PostgreSQL database objects.</p>
  
  <p>I have not access to pg_dump. So I have to get everything with SQL queries. How could I do this?</p>