I have a Postgres database "rafiu" with many schemas namely test1, test2, test3. In this I want to dump the test2 schema and its data. I tried with the following query
pg_dump -U postgres -n test2 -t t1 -t t2 rafiu > test_schema.sql
but it dumped public.t1, public.t2 tables instead of test2 schema tables in the resultant dump file.
Kindly suggest me how to create a dump specific specific schema in a DB.
Thanks in advance.
test2
? – Porphyritic