I want to delete a single row from a table in PostgreSQL 9.5.0.0, but there are a number of other items in the database that reference it as a foreign key. I'd like to delete them all, i.e. cause the deletion to cascade.
The usual way to do that would be to add ON DELETE CASDADE to the table definition, but unfortunately I'm not in a position to make changes to the database schema (don't want to create migration headaches for my coworkers). Is there any way to do this in a single SQL query?
This question has been asked before on SO (Cascading deletes in PostgreSQL) but since that was 7 years ago I thought I would bring it up again. Any chance the newer versions of Postgres allow you to do this?