Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Request for new functionality
View staffing
Description
I'm opening this Feature Request on behalf of the customer.
What you would like to accomplish:
It's required to dump multiple tables on one file with
gcloud sql export sql
along with--table
argument for PostgreSQL, in order to export multiple specific tables (not all of them) and keep the database consistency intact while avoid having to run multiple times the command generating multiple files.How this might work:
Using
gcloud sql export sql
with the--table=Table1,Table2...
should export multiple tables at one dump file and not just the first oneIf applicable, reasons why alternative solutions are not sufficient:
Currently it's only possible to export one table at a time, doing this would require to run multiple times the command to export multiple tables, which will result in multiple files possibly compromising the
Other information (workarounds you have tried, documentation consulted, etc):
As stated in the documentation it's only possible to export one table at a time with the gcloud command for PostgreSQL