This is a spinoff of a previous post (PostgreSQL - Copy Table to Another Server) which shows you how to dump a table from one server to another. The major downfall of that was the inability to specify a different schema - the schema of the table being dumped had to exist on the new server and database.
- schema.table: this is your table to be transferred
- -O: do not save ownership
- from_db: from database
- from_schema: from schema
- to_schema: to schema
- to_db: to database
pg_dump -h serverA -t schema.table -O from_db | sed -e '/^SET search_path = /s/from_schema/to_schema/g' | psql -h serverB to_db