Comment Comment by username1407 Can't you use json operators [1] for this?-- Permanently delete message sent by jonDELETE from deleted_record where table_name = 'messages' and data->>'sender' = 'jon';[1] https://www.postgresql.org/docs/15/functions-json.html parent username1407 3 years ago
-- Permanently delete message sent by jon
DELETE from deleted_record where table_name = 'messages' and data->>'sender' = 'jon';
[1] https://www.postgresql.org/docs/15/functions-json.html