@@ -114,6 +114,7 @@ static int server_version;
114114static int load_via_partition_root = 0 ;
115115static int on_conflict_do_nothing = 0 ;
116116static int statistics_only = 0 ;
117+ static int sequence_data = 0 ;
117118
118119static char role_catalog [10 ];
119120#define PG_AUTHID "pg_authid"
@@ -189,6 +190,7 @@ main(int argc, char *argv[])
189190 {"rows-per-insert" , required_argument , NULL , 7 },
190191 {"statistics-only" , no_argument , & statistics_only , 1 },
191192 {"filter" , required_argument , NULL , 8 },
193+ {"sequence-data" , no_argument , & sequence_data , 1 },
192194
193195 {NULL , 0 , NULL , 0 }
194196 };
@@ -505,6 +507,8 @@ main(int argc, char *argv[])
505507 appendPQExpBufferStr (pgdumpopts , " --on-conflict-do-nothing" );
506508 if (statistics_only )
507509 appendPQExpBufferStr (pgdumpopts , " --statistics-only" );
510+ if (sequence_data )
511+ appendPQExpBufferStr (pgdumpopts , " --sequence-data" );
508512
509513 /*
510514 * Open the output file if required, otherwise use stdout. If required,
@@ -745,6 +749,7 @@ help(void)
745749 printf (_ (" --on-conflict-do-nothing add ON CONFLICT DO NOTHING to INSERT commands\n" ));
746750 printf (_ (" --quote-all-identifiers quote all identifiers, even if not key words\n" ));
747751 printf (_ (" --rows-per-insert=NROWS number of rows per INSERT; implies --inserts\n" ));
752+ printf (_ (" --sequence-data include sequence data in dump\n" ));
748753 printf (_ (" --statistics-only dump only the statistics, not schema or data\n" ));
749754 printf (_ (" --use-set-session-authorization\n"
750755 " use SET SESSION AUTHORIZATION commands instead of\n"
0 commit comments