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
For a DROP DATABASE command, postgres removes all tablespace subdirectories that belong to the database (see remove_dbtablespaces() in dbcommands.c). The database objects (tables, indexes etc) aren't explicitly dropped.
In YB mode we'll probably have to explicitly delete the database objects too.
Summary:
This diff provides support for DROP DATABASE.
- Database and all of its object would be dropped asynchronously.
- All other connections to the database will be terminated when they execute a statement after a drop.
Test Plan: Add TestPgDropDatabase
Reviewers: mihnea
Reviewed By: mihnea
Subscribers: yql
Differential Revision: https://phabricator.dev.yugabyte.com/D6663
DROP DATABASE requires a cascading operation that is dropping all objects of that dropped database.
YugaByte is not yet supporting CASCADE operator.
The text was updated successfully, but these errors were encountered: