org.postgresql.util.PSQLException

ERROR: update or delete on table "content" violates foreign key constraint "fk594acc88c38fbea" on table "notifications" Detail: Key (contentid)=(1817938518) is still referenced from table "notifications".

Samebug tips1

Try downgrading PostgresSQL server to 9.5 or update your PostgresSQL driver to 9.4-1211 with the following command: <postgresql.version>9.4.1211</postgresql.version>

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web3263

  • ERROR: update or delete on table "content" violates foreign key constraint "fk594acc88c38fbea" on table "notifications" Detail: Key (contentid)=(1817938518) is still referenced from table "notifications".
  • ERROR: update or delete on table "content" violates foreign key constraint "fk594acc88c38fbea" on table "notifications" Detail: Key (contentid)=(1817938518) is still referenced from table "notifications".
  • via Atlassian JIRA by Matthew Erickson [Atlassian], 1 year ago
    ERROR: update or delete on table "label" violates foreign key constraint "fk594acc827072aef" on table "notifications" Detail: Key (labelid)=(2031993) is still referenced from table "notifications".
  • Stack trace

    • org.postgresql.util.PSQLException: ERROR: update or delete on table "content" violates foreign key constraint "fk594acc88c38fbea" on table "notifications" Detail: Key (contentid)=(1817938518) is still referenced from table "notifications". at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1608)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 5 months ago
    Unknown user
    Once, 1 year ago
    Once, 4 weeks ago
    26 times, 1 month ago
    7 times, 1 month ago
    89 more bugmates