Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c5Cmb-0007FZ-Hb for pgadmin-hackers@arkaria.postgresql.org; Fri, 11 Nov 2016 14:26:21 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1c5Cmb-0003vG-47 for pgadmin-hackers@arkaria.postgresql.org; Fri, 11 Nov 2016 14:26:21 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1c5CmN-0003gg-DQ for pgadmin-hackers@postgresql.org; Fri, 11 Nov 2016 14:26:07 +0000 Received: from mail-it0-x234.google.com ([2607:f8b0:4001:c0b::234]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1c5CmJ-0008Sg-NK for pgadmin-hackers@postgresql.org; Fri, 11 Nov 2016 14:26:06 +0000 Received: by mail-it0-x234.google.com with SMTP id e187so330636719itc.0 for ; Fri, 11 Nov 2016 06:26:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=l42llJuaomsNuVkYZIObSnz0fOa4XPBZhbuHwX3Skkc=; b=0kju4mAY4zFf/3ruX6vnz9NI9/aCQIiwrF8eHaNZ5W2cf9aeZYn5kI8D0cpZQAIQ4L a+CITKPBX+n8M4t07lWWEVq2LUQ63ipbTSuObg8esWmcbW3f+oqndX7EmNCMZOiND1pg 7gBtkEZGeyVwBJ2lS37HxQES6t63UiloL6DHGjZsUamQNw88bPGLDx7OrSO+63CUveXr IFNtuabxZTQHvDufExMGkbWLbAPnD0Sf/n5t7CYC+JPt58CsuOntkxj0FtMtcs+kMGFJ JQJD9CcaItbUkHnvVOS7uYfdepDXp3txL4jWVos9pPHa5KFIC70uNI4D+yXimpI+8qtv ERLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=l42llJuaomsNuVkYZIObSnz0fOa4XPBZhbuHwX3Skkc=; b=QiHe3UILxLLNGgl/zSJTFwecG5dFxpr2bE/4h5h6r4bbJM4Drm0ruzgbBnUGjI6SrE bkS7BKNlrUcWInjgMjrr5bNem7kbGw9h8dYts0wSc9P/pbKgk4re9pCCSIxUVPoyEU89 R6wmnEbWX1EmMcGoeFjkNg6BKKH+tBCcaHcooWOJuV2CyDt2g9MC/4FxRRvCbhiEGbP0 kx/B23Z1AivvNzu6+r5dvKG0q75DGK3lGKCMjEFdNwsrIgrogoiJm05oKH+16MlLfVRB d6d5GJjw1AtjCOgAulySrnqWH3lVFr1YwQiRqLziFohfGfg20j/+p6ersyiMr1KKhEom BLPQ== X-Gm-Message-State: ABUngvdLGzsHst0D+qBp/0mBZXNsypWt23aLnjvw0QQlnOz9seS5/3/nvhNEvmU1VKARx6hTi3wpDbNQrFBx+A== X-Received: by 10.107.46.25 with SMTP id i25mr12113077ioo.145.1478874359440; Fri, 11 Nov 2016 06:25:59 -0800 (PST) MIME-Version: 1.0 Received: by 10.64.87.131 with HTTP; Fri, 11 Nov 2016 06:25:58 -0800 (PST) In-Reply-To: References: From: Dave Page Date: Fri, 11 Nov 2016 14:25:58 +0000 Message-ID: Subject: Re: PATCH: To fix the issue in Debugger module (pgAdmin4) To: Murtuza Zabuawala Cc: Neel Patel , pgadmin-hackers Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org Thanks - committed with minor changes to hide the busy cursor when execution completes and to fix some comments. On Fri, Nov 11, 2016 at 12:02 PM, Murtuza Zabuawala wrote: > Hi Dave, > > PFA updated patch, Both of the issues pointed by you in last email are > addressed in this patch. > Please review. > > RM#1227 > > > -- > Regards, > Murtuza Zabuawala > EnterpriseDB: http://www.enterprisedb.com > The Enterprise PostgreSQL Company > > On Fri, Oct 21, 2016 at 5:57 PM, Neel Patel > wrote: >> >> Hi, >> >> >> On Fri, Oct 21, 2016 at 5:03 PM, Dave Page wrote: >>> >>> Hi >>> >>> On Fri, Oct 21, 2016 at 12:32 PM, Neel Patel >>> wrote: >>> > Hi, >>> > >>> > >>> > On Fri, Oct 21, 2016 at 4:48 PM, Dave Page wrote: >>> >> >>> >> Hi >>> >> >>> >> There are still issues I'm afraid: >>> >> >>> >> - When execution stops, we seem to keep polling for more results >>> >> indefinitely. >>> > >>> > Do you mean after completion of first successful debugging ? >>> > If yes, we are polling because user can start same function for >>> > debugging >>> > again and we have to listen for the result set for that session. >>> >>> Yes (or the second). But shouldn't we stop polling until debugging is >>> restarted? >> >> > > Fixed >> >> I think yes, that can be done. >>> >>> >>> >> >>> >> >>> >> - When executing for a second time, the messages tab isn't cleared, >>> >> and new messages don't seem to be appended to it either. I would >>> >> expect the tab to be cleared. >>> > > > Fixed >>> >>> > >>> > Ok. We will fix this issue. >>> >> >>> >> >>> >> On Thu, Oct 20, 2016 at 9:14 AM, Murtuza Zabuawala >>> >> wrote: >>> >> > Hi Dave, >>> >> > >>> >> > PFA updated patch for the same. >>> >> > >>> >> > Issue: >>> >> > We were not properly fetching result from server in case of direct >>> >> > debugging >>> >> > when we restart debugging of same object. >>> >> > >>> >> > Thanks to Neel for helping in this issue. >>> >> > >>> >> > Please review. >>> >> > >>> >> > -- >>> >> > Regards, >>> >> > Murtuza Zabuawala >>> >> > EnterpriseDB: http://www.enterprisedb.com >>> >> > The Enterprise PostgreSQL Company >>> >> > >>> >> > On Fri, Oct 7, 2016 at 5:32 PM, Dave Page wrote: >>> >> >> >>> >> >> On Fri, Oct 7, 2016 at 12:53 PM, Dave Page >>> >> >> wrote: >>> >> >> > On Fri, Oct 7, 2016 at 12:42 PM, Murtuza Zabuawala >>> >> >> > wrote: >>> >> >> >> Hi Dave, >>> >> >> >> >>> >> >> >> I faced the same issue when I initially tried that, but then as >>> >> >> >> per >>> >> >> >> Neel >>> >> >> >> suggestion I changed SELECT pg_sleep() to PERFORM pg_sleep() in >>> >> >> >> function. >>> >> >> >> You will face the same in pgAdmin3 if you use select pg_sleep() >>> >> >> >> in >>> >> >> >> your >>> >> >> >> function the debug call never returns from DB server. >>> >> >> > >>> >> >> > In which case, doesn't that imply the debugger is missing >>> >> >> > critical >>> >> >> > debug info? If I run the query in the query tool, I get: >>> >> >> > >>> >> >> > ==== >>> >> >> > INFO: EMPNO ENAME >>> >> >> > INFO: ----- ------- >>> >> >> > ERROR: query has no destination for result data >>> >> >> > HINT: If you want to discard the results of a SELECT, use >>> >> >> > PERFORM >>> >> >> > instead. >>> >> >> > CONTEXT: PL/pgSQL function list_emp() line 11 at SQL statement >>> >> >> > >>> >> >> > >>> >> >> > Query returned successfully in 2 secs. >>> >> >> > ==== >>> >> >> > >>> >> >> > It seems to me that the debugger should be able to give the same >>> >> >> > error. >>> >> >> > >>> >> >> > Regardless of that, I'll test with PERFORM. >>> >> >> >>> >> >> Which I just did - and whilst it seemed to be fine when stepping >>> >> >> through, after a few iterations I hit the continue button, at which >>> >> >> point it froze again on "PERFORM pg_sleep(2)", didn't print any >>> >> >> more >>> >> >> of the 14 names in the emp table, and didn't return :-( >>> >> >> >>> >> >> -- >>> >> >> Dave Page >>> >> >> Blog: http://pgsnake.blogspot.com >>> >> >> Twitter: @pgsnake >>> >> >> >>> >> >> EnterpriseDB UK: http://www.enterprisedb.com >>> >> >> The Enterprise PostgreSQL Company >>> >> > >>> >> > >>> >> >>> >> >>> >> >>> >> -- >>> >> Dave Page >>> >> Blog: http://pgsnake.blogspot.com >>> >> Twitter: @pgsnake >>> >> >>> >> EnterpriseDB UK: http://www.enterprisedb.com >>> >> The Enterprise PostgreSQL Company >>> >> >>> >> >>> >> -- >>> >> Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) >>> >> To make changes to your subscription: >>> >> http://www.postgresql.org/mailpref/pgadmin-hackers >>> > >>> > >>> >>> >>> >>> -- >>> Dave Page >>> Blog: http://pgsnake.blogspot.com >>> Twitter: @pgsnake >>> >>> EnterpriseDB UK: http://www.enterprisedb.com >>> The Enterprise PostgreSQL Company >> >> > -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers