Unlock Prisma and Postgres

Often after a prisma migration on a postgres instance, further migrations won't work citing some random error. This can be fixed with this magic incantation into psql.

SELECT pg_terminate_backend(PSA.pid)
FROM pg_locks AS PL
    INNER JOIN pg_stat_activity AS PSA ON PSA.pid = PL.pid
WHERE PSA.state LIKE 'idle'
    AND PL.objid IN (72707369);

Original source