@@ -139,6 +139,7 @@ main(int argc, char *argv[])
139
139
{"no-sync" , no_argument , NULL , 4 },
140
140
{"no-unlogged-table-data" , no_argument , & no_unlogged_table_data , 1 },
141
141
{"on-conflict-do-nothing" , no_argument , & on_conflict_do_nothing , 1 },
142
+ {"snapfs-snapshot" , required_argument , NULL , 5 },
142
143
143
144
{NULL , 0 , NULL , 0 }
144
145
};
@@ -318,6 +319,11 @@ main(int argc, char *argv[])
318
319
appendPQExpBufferStr (pgdumpopts , " --no-sync" );
319
320
break ;
320
321
322
+ case 5 :
323
+ appendPQExpBufferStr (pgdumpopts , " --snapfs-snapshot " );
324
+ appendShellString (pgdumpopts , optarg );
325
+ break ;
326
+
321
327
default :
322
328
fprintf (stderr , _ ("Try \"%s --help\" for more information.\n" ), progname );
323
329
exit_nicely (1 );
@@ -627,6 +633,7 @@ help(void)
627
633
printf (_ (" --no-unlogged-table-data do not dump unlogged table data\n" ));
628
634
printf (_ (" --on-conflict-do-nothing add ON CONFLICT DO NOTHING to INSERT commands\n" ));
629
635
printf (_ (" --quote-all-identifiers quote all identifiers, even if not key words\n" ));
636
+ printf (_ (" --snapfs-snapshot=SNAPSHOT use given SNAPFS snapshot for the dump\n" ));
630
637
printf (_ (" --use-set-session-authorization\n"
631
638
" use SET SESSION AUTHORIZATION commands instead of\n"
632
639
" ALTER OWNER commands to set ownership\n" ));
0 commit comments