Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

773
Views
PostgreSQL: pg_dump for a single table

I'm beginner with PostgreSQL and doing backups using:

sudo -u postgres pg_dumpall > /~/postgreBackup.SQL

Works fine! Now I want to backup a single table "TableName" in a scheme "SchemeName" and tried

sudo -u postgres pg_dump --table "SchemaName"."TableName" > /~/Dummy.SQL

pg_dump: no matching tables were found

How to get it working?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

When you have case sensitive table and schema name you have to do the proper quoting of a table name. The below command should work fine as I have successfully executed it at my end.

Please make sure you are using the correct case sensitive name of database, schema and table in this command.

./pg_dump --dbname="myDatabase" --host=localhost --port=5432 --username=postgres  --table='"MyScheme"."TableName 01"' --file=Dummy

OR

./pg_dump --dbname="myDatabase" --host=localhost --port=5432 --username=postgres  --table='"MyScheme"."TableName 01"' > ~/Dummy.SQL

Disclosure: I work for EnterpriseDB (EDB)

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!