On 8/05/2023 11:04 pm, Andres Freund wrote: > Are you using any extensions? Only plpgsql. > Do you have any chance to figure out what statements were running > concurrently with the DROP DATABASE? No. Is there some way to log that, other than just logging all statements (which seems impractical)? Most of the statements running on that server should be inserts into another database, some reads. Something could be creating or dropping partitions in another DB in parallel, too, but not frequently.