v.20.11Improvement
Support for database atomic wait options in DROP DATABASE command
Support fordatabase_atomic_wait_for_drop_and_detach_synchronously/NO DELAY/SYNCforDROP DATABASE. #16127 (Azat Khuzhin).
Why it matters
This feature addresses the need for users to performDROP DATABASE operations synchronously, ensuring that the database drop and detach operations complete before the command returns. It improves reliability and predictability in database management tasks where immediate confirmation of the drop is required.How to use it
Users can enable synchronous dropping of databases by setting thedatabase_atomic_wait_for_drop_and_detach_synchronously setting to 1 or by appending NO DELAY or SYNC to the DROP DATABASE query, for example:DROP DATABASE dbname NO DELAY;or
DROP DATABASE dbname SYNC;