You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Non text modes for pg_dumpall, correspondingly change pg_restore
pg_dumpall acquires a new -F/--format option, with the same meanings aspg_dump. The default is p, meaning plain text. For any other value, adirectory is created containing two files, globals.data and map.dat. Thefirst contains SQL for restoring the global data, and the secondcontains a map from oids to database names. It will also contain asubdirectory called databases, inside which it will create archives inthe specified format, named using the database oids.In these casess the -f argument is required.If pg_restore encounters a directory containing globals.dat, and notoc.dat, it restores the global settings and then restores eachdatabase.pg_restore acquires two new options: -g/--globals-only which suppressesrestoration of any databases, and --exclude-database which inhibitsrestoration of particualr database(s) in the same way the same optionworks in pg_dumpall.Author: Mahendra Singh Thalor <mahi6run@gmail.com>Co-authored-by: Andrew Dunstan <andrew@dunslane.net>Reviewed-by: jian he <jian.universality@gmail.com>Reviewed-by: Srinath Reddy <srinath2133@gmail.com>Reviewed-by: Álvaro Herrera <alvherre@alvh.no-ip.org>Discussion:https://postgr.es/m/cb103623-8ee6-4ba5-a2c9-f32e3a4933fa@dunslane.net