From: | Anthony Sotolongo <asotolongo(at)gmail(dot)com> |
---|---|
To: | FLOR AVILA ELIAS <favila(at)ditelgroup(dot)com>, Ayuda Esp PostgreSQL <pgsql-es-ayuda(at)postgresql(dot)org> |
Subject: | Re: QUERYS PENDIENTES SE REINICIAN |
Date: | 2019-05-31 17:15:51 |
Message-ID: | 89386f04-4921-d61d-eb66-3a109d8686fd@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
Hola, segun la documentacion existen dos funciones para "matar" un query
pg_cancel_backend - Cancel a backend's current query. You can execute
this against another backend that has exactly the same role as the user
calling the function. In all other cases, you must be a superuser.
pg_terminate_backend - Terminate a backend. You can execute this against
another backend that has exactly the same role as the user calling the
function. In all other cases, you must be a superuser.
has intentado ejecutar la segunda?, pues la primera solo la cancela, la
segunda le corta la conexión
y además puede que el aplicativo intente volver a ejecutar la query
Saludos
El 31-05-19 a las 12:53, FLOR AVILA ELIAS escribió:
> Buenos dias tengo un servidor Centos 5 con postgres 9.3 que necesito
> matar su query pero definitivamente, porque a pesar que los mato con
> select pg_cancel_backend(PID) vuelve a tratar de ejecutarse.
>
> Gracias Flor
>
From | Date | Subject | |
---|---|---|---|
Next Message | FLOR AVILA ELIAS | 2019-05-31 17:51:00 | POSTGRES autovacumm launcher postgres |
Previous Message | raul andrez gutierrez alejo | 2019-05-31 17:07:42 | Re: QUERYS PENDIENTES SE REINICIAN |