Is there a way to get pg_dump to exclude a specific sequence?

后端 未结 2 1747
一向
一向 2021-02-05 09:00

I want to exclude a sequence from my pg_dump command which is putting the output into a plain file.

Command: /Library/PostgreSQL/8.4/bin/pg_dump --host localhos         


        
2条回答
  •  暖寄归人
    2021-02-05 09:28

    If the sequence is owned by a table you can exclude both the sequence and the table using -T, such as:

    pg_dump -T table -T table_id_seq
    

提交回复
热议问题