I use following command to dump some structures from server\' database to be able to create sample of data on my local hard drive.
pg_dump -h myserver.com -U
In addition to the answer from Bartosz above, you can use the following sed command to remove e.g. a certain FUNCTION from the list before restoring:
sed -r -i -e '/FUNCTION public plpgsql_call_handler\(\) postgres/d' /var/backup/${DBNAME}.list