I have a table transaction_metadata with a row with primary key: ac98435e-3eb3-11e9-8a32-4713408df551, which shows up in a SELECT statement.
In a transaction, deleting it (DELETE FROM transaction_metadata WHERE id = 'ac98435e-3eb3-11e9-8a32-4713408df551') says that it deletes 0 rows. Later in the transaction, deleting a row that the transaction_metadata row referenced fails due to breaking a foreign key constraint.
How could this be? Why would the DELETE say it deleted 0 rows when it exists in the SELECT, and foreign key constraints say it exists?