RE: depurador sp

From: Leonardo Boet Sánchez <boet(at)gtm(dot)tel(dot)etecsa(dot)cu>
To: <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: RE: depurador sp
Date: 2005-03-18 18:12:39
Message-ID: 8833BE7BC6607C468C4F07FEBAB9E6ECC8813A@srvgtm.gtm.tel.etecsa.cu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

El otro dia mirando el EMS Postgresql manager vi que tenia esto de depurar los procedimientos almacenados, mira lo que dice la ayuda del lite, que dicho sea de paso no lo trae, tienes que utilizar el profesional, si lo hace o no, no lo se ya que no lo probé :

Plpgsql Function Debugger

<mk:@MSITStore:C:\Archivos%20de%20programa\EMS\PostgreSQL%20Manager%202\PgManager.chm::/hs10.htm> <mk:@MSITStore:C:\Archivos%20de%20programa\EMS\PostgreSQL%20Manager%202\PgManager.chm::/hs200.htm> <mk:@MSITStore:C:\Archivos%20de%20programa\EMS\PostgreSQL%20Manager%202\PgManager.chm::/hs1160.htm>

To fix the errors in the function code and to optimize the function work you can debug the function step-by-step before compilation, using the Plpgsql Function Debugger. To activate the debugger open the function in the Function Editor <mk:@MSITStore:C:\Archivos%20de%20programa\EMS\PostgreSQL%20Manager%202\PgManager.chm::/hs200.htm> , then click the Debug Function button on the toolbar.

At the top area you can view and edit the function text. The blue spots at the left of the window indicate the statements, executed by the function; the green arrow indicates the current statement.

To start executing the function step-by-step press F8. To reset executing the function press Ctrl+F2. To add a breakpoint to the current statement press Ctrl+F8.

Plpgsql Function Debugger Tabs

Parameters and Variables
Displays the list of input and output function parameters (indicated by the proper icon) with their values and types.

Results
Displays the list of RETURNS variables. After executing the function it also displays their values.

Last Statement
Displays the last executed statement, the statement execution plan and the execution time.

Breakpoints
Displays the function breakpoints: the breakpoint line, statement and the number of its passes. You can add a breakpoint to the current statement by pressing Ctrl+F8.

Messages
Displays various Plpgsql Function Debugger messages.

See also:

________________________________

De: pgsql-es-ayuda-owner(at)postgresql(dot)org [mailto:pgsql-es-ayuda-owner(at)postgresql(dot)org] En nombre de askertchly_dacompsc
Enviado el: viernes, 18 de marzo de 2005 10:00
Para: pgsql-es-ayuda(at)postgresql(dot)org
Asunto: Re: [pgsql-es-ayuda] depurador sp

Yo ya me enfrente a ese problema. Estoy migrando de Oracle a Postgres y tuve que traducir alrededor de 200 funciones. Y pues lo hice a pie y con las mismas broncas que tu estás pasando.

Alvaro Herrera mencionó que no hay depurador porque el lenguaje no puede soportarlo por el momento.

Saludos y suerte

Armando Skertchly M.
DAComp, S.C.
Av. Aguascalientes #323-3
Aguascalientes, Ags. 20040
(449)914-6793

---------- Original Message -----------
From: "Roberto Ovalle" <robertoo(at)127(dot)cl>
To: <pgsql-es-ayuda(at)postgresql(dot)org>
Sent: Fri, 18 Mar 2005 11:12:28 -0400
Subject: [pgsql-es-ayuda] depurador sp

> Hola, alguien conoce algun depurador para postgresl, soy nuevo en postgre, estamos migrando de sql server a postgre y en el cambio de sp, he tenido problemas, lo peor, es que cuando se cae el sp me arroja el error
>
> error en caracter NNNN
>
> poco claro, por eso necesito algpun sw que me permita depurar un procedimiento almacenado
>
> muchas gracias
>
------- End of Original Message -------

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message cpo 2005-03-18 19:36:09 recuperar un serial
Previous Message Leonardo Boet Sánchez 2005-03-18 18:08:39 Rendimiento de funciones