-
Maravilla 3 months ago
Another working solutions
Get the active locks from pg_locks:
SELECT t.relname, l.locktype, page, virtualtransaction, pid, mode, granted FROM pg_locks l, pg_stat_all_tables t WHERE l.relation = t.relid ORDER BY relation asc;
Copy the pid(ex: 14210) from above result and substitute in the below command.
SELECT pg_terminate_backend(14210)
link : https://stackoverflow.com/questions/1063043/how-to-release-possible-postgres-row-locks
Reply
-
Maravilla 3 months ago
Another working solutions
Get the active locks from pg_locks:
SELECT t.relname, l.locktype, page, virtualtransaction, pid, mode, granted FROM pg_locks l, pg_stat_all_tables t WHERE l.relation = t.relid ORDER BY relation asc;
Copy the pid(ex: 14210) from above result and substitute in the below command.
SELECT pg_terminate_backend(14210)
link : https://stackoverflow.com/questions/1063043/how-to-release-possible-postgres-row-locks
Reply
-
Maravilla 3 months ago
Another working solutions
Get the active locks from pg_locks:
SELECT t.relname, l.locktype, page, virtualtransaction, pid, mode, granted FROM pg_locks l, pg_stat_all_tables t WHERE l.relation = t.relid ORDER BY relation asc;
Copy the pid(ex: 14210) from above result and substitute in the below command.
SELECT pg_terminate_backend(14210)
link : https://stackoverflow.com/questions/1063043/how-to-release-possible-postgres-row-locks
Reply
Similars contributions

Category : Development
How to get lastModification of file with Talend using tFileProperties ?

Category : Development
How to implement DataTable with MaterializeCss

Category : Development
Customer Editor for INPUT

Category : Development
Laravel default notification email template

Category : Development
Laravel , How to Save User's Last Login Time and IP Address

Category : Development
Laravel Multiple Database Connection

Category : Development
laravel excel read file without import to database

Category : Development
laravel composer install tools and ignore errors

Category : Development
Send invite to Emails not registered in the system

Category : Development
nodejs "npm ERR! code SELF_SIGNED_CERT_IN_CHAIN"

Category : Development
How to POST JSON with REST API in Talend Studio

Category : Database
How to reset locks in postgresql tables

Category : Development
Update Capacitor native platforms, install Capacitor/Cordova plugins

Category : Development
@Ionic/Angular peer dependency on rxjs conflicts with @ionic-native/core

Category : Development
No ReaderType or WriterType could be detected. Make sure you either pass a valid extension to the filename or pass an explicit type