Re: pgAdmin debugger hangs on Windows 8 after closing debug window

From: Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com>
To: EDUARDO ESTEBAN <eduardo(at)deisa(dot)net>
Cc: pgadmin-support <pgadmin-support(at)postgresql(dot)org>
Subject: Re: pgAdmin debugger hangs on Windows 8 after closing debug window
Date: 2013-10-28 17:57:00
Message-ID: CAG7mmoymudLxWB=P8h6MELc6RXiM_L5QiEvGS5xwFn8XN6JYXg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

On Mon, Oct 28, 2013 at 10:51 PM, EDUARDO ESTEBAN <eduardo(at)deisa(dot)net> wrote:

> **
> Thank you for your fast answer.
> I don´t know what you exactly mean by session, but please let me resume
> the steps to reproduce the problem:
>
> 1- To test it, use the example (database, table and trigger function y
> supplied)
> 2- Open one pgAdmin (we call this pgAdmin 1) and "set breakpoint" on the
> trigger function isql_country_b_trigger.
> 3- Open another pgAdmin (we call this pgAdmin 2) and insert a record in
> the COUNTRY_COU table (only the cou_id field is mandatory)
> 3- On pgAdmin 1 you will see that the debugger is waiting..., press F5 and
> don´t close any window
> 4- On pgAdmin 2 insert a new record in the COUNTRY_COU table
> 5- pgAdmin 2 is frozen and pgAdmin 1 is not sttoped in de debug window as
> it was on step 3.
>
Unfortunately - I am not able reproduce the scenario.
I tried multiple times and multiple ways without luck...

>
> Regards.
> Eduardo Esteban
>
>
> ------------------------------
> *De:* Ashesh Vashi [mailto:ashesh(dot)vashi(at)enterprisedb(dot)com]
> *Enviado el:* lunes, 28 de octubre de 2013 17:59
>
> *Para:* EDUARDO ESTEBAN
> *CC:* pgadmin-support
> *Asunto:* Re: [pgadmin-support] pgAdmin debugger hangs on Windows 8 after
> closing debug window
>
> Do mean to say that - the debugger does not remember the break-points
> for two different sessions?
> Then yes - it is not remembering them at the moment.
> I will send a patch to resolve the issue soon.
>
>
> On Mon, Oct 28, 2013 at 9:14 PM, EDUARDO ESTEBAN <eduardo(at)deisa(dot)net>wrote:
>
>> **
>> Dear Ashesh,
>> I told you that the pgAdmin debug was working on 9.3.1.-1 but making a
>> deeper test it doesn´t work well at all.
>> Once a breakpoint is reached, if F5 key is pressed (to continue) if the
>> breakpoint is reached later again then it doesn´t stop on the debuggged
>> function but at the same time the function doesn´t continue with the
>> execution (it seems that the breakpoint is reached but it doesn´t show up
>> and the xecution of the function is stopped)
>> You can try it with the same test example that i described on my previous
>> email.
>>
>>
>> Thank you in advance
>> Eduardo Esteban
>>
>>
>>
>> ------------------------------
>> *De:* pgadmin-support-owner(at)postgresql(dot)org [mailto:
>> pgadmin-support-owner(at)postgresql(dot)org] *En nombre de *Ashesh Vashi
>> *Enviado el:* martes, 22 de octubre de 2013 19:40
>>
>> *Para:* EDUARDO ESTEBAN
>> *CC:* pgadmin-support
>> *Asunto:* Re: [pgadmin-support] pgAdmin debugger hangs on Windows 8
>> after closing debug window
>>
>>
>> On 22 Oct 2013 20:16, "EDUARDO ESTEBAN" <eduardo(at)deisa(dot)net> wrote:
>> >
>> > Dear Ashesh.
>> > I have tested the pgAdmin debugger with PostgreSQL 9.3.1 and it works
>> fine on Windows 8 x64.
>> Glad to hear that...
>>
>> -- Ashesh
>> >
>> > Thank you very much for your help.
>> > Regards.
>> > Eduardo Esteban
>> >
>> > ________________________________
>> > De: pgadmin-support-owner(at)postgresql(dot)org [mailto:
>> pgadmin-support-owner(at)postgresql(dot)org] En nombre de Ashesh Vashi
>> > Enviado el: martes, 22 de octubre de 2013 15:49
>> >
>> > Para: EDUARDO ESTEBAN
>> > CC: pgadmin-support
>> > Asunto: Re: [pgadmin-support] pgAdmin debugger hangs on Windows 8 after
>> closing debug window
>> >
>> > On Mon, Oct 21, 2013 at 8:12 PM, EDUARDO ESTEBAN <eduardo(at)deisa(dot)net>
>> wrote:
>> >>
>> >> Dear Ashesh,
>> >> Thank you for your fast answer.
>> >> It fails with any function or trigger that i have tested it always on
>> Windows 8 x64 and i have tested with several pgAdmin and PostgreSQL
>> versions on Windows 8.
>> >> Anyway here there are the details of the version and a example to test.
>> >> PostgreSQL 9.2.4 on x64
>> >> Compiled by Visual C++ build 1600 64 bit
>> >>
>> >> PGAdmin 1.16.1 April 2 2013 REV: REL-1_16_1
>> >
>> > Hi,
>> >
>> > Thanks for the inputs...
>> >
>> > FYI - We've redesigned the debugger code completely in pgAdmin 1.18.
>> > Unfortunately - we found a lot of design issues with debugger code in
>> older version, which couldn't be tracked and fixed, which forced us to
>> redesign ti for the latest version.
>> >
>> > Please use the latest pgAdmin III (1.18.1) bundled with one-click
>> installer PostgreSQL 9.3.1 , or you can download it for windows from this
>> link:
>> > http://www.postgresql.org/ftp/pgadmin3/release/v1.18.1/win32/
>> >
>> > Can you please share your experience with the latest pgAdmin III?
>> >>
>> >>
>> >> PostgreSQL and pgAdmin are installed using the Windows installer
>> provided by Enterprisedb from the download page of postgresql.org
>> >>
>> >> The database coding by default is UTF8 but i change it to WIN1252
>> once the database is created.
>> >> These are all the steps to reproduce the problem:
>> >>
>> >> -- CREATE DATABASE
>> >> CREATE DATABASE "i.TEST.2013.0"
>> >> WITH OWNER = postgres
>> >> TABLESPACE = pg_default
>> >> LC_COLLATE = 'Spanish_Spain.1252'
>> >> LC_CTYPE = 'Spanish_Spain.1252'
>> >> CONNECTION LIMIT = -1;
>> >>
>> >> --UPDATE DATABASE CODING
>> >> update "pg_catalog"."pg_database" set encoding=24 where
>> datname='i.TEST.2013.0'
>> >>
>> >> -- ACTIVATE DEBUGGER
>> >> CREATE EXTENSION pldbgapi;
>> >>
>> >> -- CREATE TABLE
>> >> CREATE TABLE "COUNTRY_COU"
>> >> (
>> >> cou_id character varying(2) NOT NULL DEFAULT ''::character varying,
>> -- ID ISO 2
>> >> cou_iso3 character varying(3), -- ISO 3
>> >> cou_countryname character varying(100), -- País
>> >> cou_isocode integer, -- Cod. ISO
>> >> cou_flag bytea, -- Bandera
>> >> CONSTRAINT cou_id PRIMARY KEY (cou_id) -- ID ISO 2
>> >> )
>> >> WITH (
>> >> OIDS=FALSE
>> >> );
>> >> ALTER TABLE "COUNTRY_COU"
>> >> OWNER TO postgres;
>> >>
>> >> -- Index: cou_countryname
>> >>
>> >> -- DROP INDEX cou_countryname;
>> >>
>> >> CREATE UNIQUE INDEX cou_countryname
>> >> ON "COUNTRY_COU"
>> >> USING btree
>> >> (cou_countryname);
>> >> -- Index: cou_iso3
>> >>
>> >> -- DROP INDEX cou_iso3;
>> >>
>> >> CREATE UNIQUE INDEX cou_iso3
>> >> ON "COUNTRY_COU"
>> >> USING btree
>> >> (cou_iso3);
>> >> -- Index: cou_isocode
>> >>
>> >> -- DROP INDEX cou_isocode;
>> >>
>> >> CREATE UNIQUE INDEX cou_isocode
>> >> ON "COUNTRY_COU"
>> >> USING btree
>> >> (cou_isocode);
>> >> -- CREATE FUNCTION
>> >> CREATE OR REPLACE FUNCTION isql_country_b_trigger()
>> >> RETURNS trigger AS
>> >> $BODY$
>> >> DECLARE
>> >>
>> >> BEGIN
>> >> IF (TG_OP = 'INSERT') OR (TG_OP = 'UPDATE') THEN
>> >> IF NEW.cou_id IS NULL THEN
>> >> RAISE 'cou_id is null' USING ERRCODE = '42000';
>> >> END IF;
>> >> IF NEW.cou_iso3 IS NULL THEN
>> >> NEW.cou_iso3 = NEW.cou_id;
>> >> END IF;
>> >> IF NEW.cou_countryname IS NULL THEN
>> >> NEW.cou_countryname = NEW.cou_id;
>> >> END IF;
>> >> RETURN NEW;
>> >> ELSIF (TG_OP = 'DELETE') THEN
>> >> RETURN OLD;
>> >> ELSIF (TG_OP = 'UPDATE') THEN
>> >> RETURN NEW;
>> >> END IF;
>> >> RETURN NULL;
>> >> END;
>> >> $BODY$
>> >> LANGUAGE plpgsql VOLATILE
>> >> COST 1000;
>> >> ALTER FUNCTION isql_country_b_trigger()
>> >> OWNER TO postgres;
>> >> --CREATE TRIGGER
>> >> CREATE TRIGGER isql_tri_0_b_iud_country_cou
>> >> BEFORE INSERT OR UPDATE OR DELETE
>> >> ON "COUNTRY_COU"
>> >> FOR EACH ROW
>> >> EXECUTE PROCEDURE isql_country_b_trigger();
>> >>
>> >>
>> >>
>> >> Finally, to reproduce the problem open one pgAdmin Window to debug the
>> trigger function.
>> >>
>> >> Open another pgAdmin Window and insert a record on the table.
>> >>
>> >> When the debug Window is closed then the pgAdmin freezes and it should
>> be closed from the task manager.
>> >>
>> >>
>> >> Thank you in advance
>> >> Eduardo Esteban
>> >>
>> >>
>> >>
>> >> ________________________________
>> >> De: pgadmin-support-owner(at)postgresql(dot)org [mailto:
>> pgadmin-support-owner(at)postgresql(dot)org] En nombre de Ashesh Vashi
>> >> Enviado el: lunes, 21 de octubre de 2013 13:08
>> >> Para: EDUARDO ESTEBAN
>> >> CC: pgadmin-support
>> >> Asunto: Re: [pgadmin-support] pgAdmin debugger hangs on Windows 8
>> after closing debug window
>> >>
>> >> Hi Eduardo Esteban,
>> >>
>> >> Can you please share the pl/pgsql for debugging?
>> >> (We require that to understand the function structure. i.e. return
>> values, arguments, etc.)
>> >>
>> >> We will also require following information:
>> >> 1. pgAdmin III version
>> >> 2. OS version
>> >> 3. Database server version
>> >>
>> >> NOTE: A step by step reproduction steps will be very helpful.
>> >>
>> >> On Mon, Oct 21, 2013 at 4:25 PM, EDUARDO ESTEBAN <eduardo(at)deisa(dot)net>
>> wrote:
>> >>>
>> >>> Hi,
>> >>> When using the debugger in pgAdmin on Windows 8 debugging any
>> pl/pgsql funtion it hangs and the pgAdmin should be close from the task
>> manager.
>> >>> This only happens on whatever version of pgAdmin used on Windows 8 64
>> bits (for example pgAdmin 1.18.0).
>> >>> To reproduce the problem try to debug a pl/pgsql function and after
>> the debug window shows, try to close the debug window and you will see that
>> the pgAdmin hangs and it should be restarted.
>> >>>
>> >>> Thank you in advance.
>> >>> Eduardo Esteban
>> >>>
>> >>
>> >>
>> >>
>> >>
>> >> --
>> >> --
>> >>
>> >> Thanks & Regards,
>> >>
>> >> Ashesh Vashi
>> >> EnterpriseDB INDIA: Enterprise PostgreSQL Company
>> >>
>> >>
>> >>
>> >> http://www.linkedin.com/in/asheshvashi
>> >
>> > --
>> >
>> > Thanks & Regards,
>> >
>> > Ashesh Vashi
>> > EnterpriseDB INDIA: Enterprise PostgreSQL Company
>> >
>> >
>> > http://www.linkedin.com/in/asheshvashi
>>
>
>
>
> --
> --
>
> Thanks & Regards,
>
> Ashesh Vashi
> EnterpriseDB INDIA: Enterprise PostgreSQL Company<http://www.enterprisedb.com>
>
>
>
> *http://www.linkedin.com/in/asheshvashi*<http://www.linkedin.com/in/asheshvashi>
>

--
--

Thanks & Regards,

Ashesh Vashi
EnterpriseDB INDIA: Enterprise PostgreSQL Company<http://www.enterprisedb.com>

*http://www.linkedin.com/in/asheshvashi*<http://www.linkedin.com/in/asheshvashi>

In response to

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message EDUARDO ESTEBAN 2013-10-28 18:06:53 Re: pgAdmin debugger hangs on Windows 8 after closing debug window
Previous Message EDUARDO ESTEBAN 2013-10-28 17:21:52 Re: pgAdmin debugger hangs on Windows 8 after closing debug window