Remove rows in table in Postgresql
Sometimes I need to delete identical rows in any table in Postgresql database. When I try it using recordset editor I get error because of duplicates:
"Unexpected update count received (Actual: 2, Expected: 1). Changes will be rolled back. SQL: {SQL STATEMENT}"
I believe It'd better to use CTID identifier to remove exactly one record
Please sign in to leave a comment.
Hi,
Could you provide sample DDL of such kind of tables?
Thank you.
@Dkuznetsov Hi,
As a workaround, try to drop rows in table editor. If you need to narrow down results you can use filter criteria.
Thank you.