I'm trying to create a backup from PostgreSQL database, but getting the following error: pg_dump: No matching schemas were found
I'm logged in as root and running the command
pg_dump -f db.dump --format=plain --schema=existing_schema --username=userx --host=localhost databasename
- I logged in with userx to psql and tried \dt - this gave me information, that schema with name existing_schema is public.
- I checked \l to see that databasename is the database name.
- Password is correct, otherwise I could not access psql.
- Localhost is correct, checked from running processes. Tried the ip-address of the server also, but in this case pg_admin gave an error about the host address.
Output of \dl:
List of relations Schema | Name | Type | Owner --------+-------------------------------------+-------+------- public | existing_schema | table | userx
public
or is it namedexisting_schema
? – Pepys\dt
command would display. – Pepys<pre>
tags) – Pepys