Re: Matar un UPDATE

From: Gustavo Vaccaro <gustavo_vaccaro(at)fibertel(dot)com(dot)ar>
To: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: Matar un UPDATE
Date: 2016-12-23 15:53:18
Message-ID: dc673292-1418-aa81-9753-b4a21aecd33b@fibertel.com.ar
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Ya lo hice y pasa lo mismo.<br>
<div class="moz-signature">
<meta content="text/html; charset=windows-1252"
http-equiv="content-type">
<title></title>
<meta content="Gustavo J. Vaccaro - www.gjv.com.ar" name="author">
<span style="font-weight: bold; font-family: Arial;"><br>
Gustavo J. Vaccaro</span><br>
<a style="font-style: italic;" href="http://www.gjv.com.ar">http://www.gjv.com.ar</a><br>
<br>
</div>
<div class="moz-cite-prefix">El 23/12/2016 a las 12:10 p.m., Lazaro
Garcia escribió:<br>
</div>
<blockquote cite="mid:000501d25d2e$a4203a60$ec60af20$(at)gmail(dot)com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";
color:black;}
span.EstiloCorreo18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;mso-fareast-language:EN-US">Podrías
intentar con pg_cancel_backend(pid)??<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;mso-fareast-language:EN-US">Saludos
a todos.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:windowtext">De:</span></b><span
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:windowtext">
<a class="moz-txt-link-abbreviated" href="mailto:pgsql-es-ayuda-owner(at)postgresql(dot)org">pgsql-es-ayuda-owner(at)postgresql(dot)org</a>
[<a class="moz-txt-link-freetext" href="mailto:pgsql-es-ayuda-owner(at)postgresql(dot)org">mailto:pgsql-es-ayuda-owner(at)postgresql(dot)org</a>] <b>En
nombre de </b>Gustavo Vaccaro<br>
<b>Enviado el:</b> viernes, 23 de diciembre de 2016 9:27<br>
<b>Para:</b> <a class="moz-txt-link-abbreviated" href="mailto:pgsql-es-ayuda(at)postgresql(dot)org">pgsql-es-ayuda(at)postgresql(dot)org</a><br>
<b>Asunto:</b> [pgsql-es-ayuda] Matar un UPDATE<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p>Hola,<o:p></o:p></p>
<p>tengo un problema que me pasa muy de vez en cuando pero no
tengo idea como solucionarlo sin cerrar el postgres.<o:p></o:p></p>
<p>Recien desde un programa se ejecutó una sentencia: "UPDATE
remitoegr SET anulado = 'S' WHERE id_nroemp = 5 AND
id_nroremito = 118"<o:p></o:p></p>
<p>Estaba corriendo el debug de PGADMIN sobre un trigger que se
dispara con el update en la tabla remitoegr y cerré sin darme
cuenta la ventana que me abrio el debug.<o:p></o:p></p>
<p>Cuando ejecuto "SELECT  * FROM pg_stat_activity" veo que el
UPDATE esta vivo con PID 11160.<o:p></o:p></p>
<p>Ejecuto "SELECT pg_terminate_backend(11160)" y no pasa nada.<o:p></o:p></p>
<p>El usuario que utilizo es postgres y es superusuario. El
usuario del UPDATE es admin y tambien superusuario.<o:p></o:p></p>
<p>Estoy corriendo postgresql 9.3 sobre win 7 64. Es mi entorno
de desarrollo y pruebas.<o:p></o:p></p>
<p>¿Alguna idea como matar el UPDATE o cual es el problema?<o:p></o:p></p>
<p>Saludos<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">-- <br>
<b><span
style="font-family:&quot;Arial&quot;,&quot;sans-serif&quot;"><br>
Gustavo J. Vaccaro</span></b><br>
<a moz-do-not-send="true" href="http://www.gjv.com.ar"><i>http://www.gjv.com.ar</i></a><o:p></o:p></p>
</div>
</div>
<p class="" avgcert""="" color="#000000" align="left">Se certificó
que el correo no contiene virus.<br>
Comprobada por AVG - <a moz-do-not-send="true"
href="http://www.avg.com">www.avg.com</a><br>
Versión: 2016.0.7924 / Base de datos de virus: 4739/13640 -
Fecha de la versión: 23/12/2016</p>
</blockquote>
<br>
</body>
</html>

Attachment Content-Type Size
unknown_filename text/html 6.0 KB

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Alvaro Herrera 2016-12-23 15:53:41 Re: Matar un UPDATE
Previous Message Lazaro Garcia 2016-12-23 15:10:02 RE: Matar un UPDATE