Audit trigger
An AFTER trigger sees OLD (the row before) and NEW (after). to_jsonb(OLD) turns a whole row into json. Member 999 is a throwaway row.
task
Write each DELETE on members to audit_log with the old row as jsonb; then delete member 999.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
An AFTER trigger sees OLD (the row before) and NEW (after). to_jsonb(OLD) turns a whole row into json. Member 999 is a throwaway row.
Write each DELETE on members to audit_log with the old row as jsonb; then delete member 999.