A vulnerability in PostgreSQL's MERGE command can cause an AFTER trigger to process the wrong new row when using partitioned table MERGE operations that perform an INSERT before an UPDATE. This affects major versions 15 through 18, specifically minor versions before 15.20, 16.16, 17.12, and 18.7. Versions prior to 15 are not affected.