-
Notifications
You must be signed in to change notification settings - Fork 595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
provide a tool to export database schema like pg_dump
#15480
Comments
How about offering a risectl command to print |
I am not sure if the intention is to build a user-facing interface or just to simplify our internal troubleshootting. If it's the former, I suggest to add a SQL command instead of risectl command: psql -c 'show tables;' so that user don't have to download any other tools. |
|
These TODO items (non-exhausted list) are too much for us in the shorterm. I would prefer writing a
|
This issue has been open for 60 days with no activity. If you think it is still relevant today, and needs to be done in the near future, you can comment to update the status, or just manually remove the You can also confidently close this issue as not planned to keep our backlog clean. |
With PostgreSQL,
pg_dump
is a commonly-used tool to backup the database. Apart from backing up data, it can also help to export the schema of the database.For example,
pg_dump --schema-only -d postgres > db.sql
will execute a series of statements in the Postgres server as the following...
Full statements
However, due to the completely different architecture and system designing in RisingWave,
pg_dump
may not work perfectly with RisingWave. For example, we customize the DDL syntaxes and define new objects likeFUNCTION
orSOURCE
. So we may want to provide a similar tool ourselves to provide such functionalities.The text was updated successfully, but these errors were encountered: