Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsTif-0004eG-29 for pgadmin-hackers@arkaria.postgresql.org; Fri, 07 Oct 2016 11:53:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bsTie-0003ta-FK for pgadmin-hackers@arkaria.postgresql.org; Fri, 07 Oct 2016 11:53:40 +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 1bsTiR-0003fE-Ao for pgadmin-hackers@postgresql.org; Fri, 07 Oct 2016 11:53:27 +0000 Received: from mail-it0-x230.google.com ([2607:f8b0:4001:c0b::230]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bsTiO-00059u-FE for pgadmin-hackers@postgresql.org; Fri, 07 Oct 2016 11:53:26 +0000 Received: by mail-it0-x230.google.com with SMTP id l13so13261555itl.1 for ; Fri, 07 Oct 2016 04:53:24 -0700 (PDT) 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=2yUPIJJWdjS0KoZijgVeqUqs8SntMgCifATQODwVoTg=; b=fyoaAdCHsMBVrNNDLWey6Uu+9viG3664rQCJmNJ2LJI7lcrOu45BdpviNlqbW4Ffkj E4mYZ2syt8D3WGooGISND3edgPYLaS2N98dHWCu+lfQOl5Ie8K+sxn3F9wPYRZucsmbI IkVRb1cm/SnfYqukvZ7D5hPfFYGYIhu1CkTNiof5XQ3gyU0UyCCDJwvwwd7Pc0FIcjPk 9tfGetzSSZA0gX+PgILQr8+oOZCRZ2/ZlyjcpxFxglyO7wba05hzgKp1UIgHZOtB0NVA L7jOvQZpDUb1RpsIf7U+q786zYf7XSMb1xkhb3JEQocbP+xDWZLjsIypKRqhxz9xiMcI umDg== 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=2yUPIJJWdjS0KoZijgVeqUqs8SntMgCifATQODwVoTg=; b=LMejtNJKws1yRkIhcXLkbFQTl/BA56Fikqfh0nUyM+WwsUPyapJgYTFi/rkOqZP4Jt iG/2tnIT76pWUryKGWELSBwb7WRtMZdkzaIaMsLYuHaWct5N81lTyNLRCijZH6imN915 L/0DqYJykXvWs5Y30JOiba3oKlfuYZ1+GSTkTrpEjfE11ihbeN2/Y4iqr/9rQf1+pYxM 30lu0qZsRupO3YfpuojcW39woIBJmnykNlp9/ywikusQ+Zee1p0Ur+UnLx2Cyp9u8wT4 5BpKWUZzGRSQWBkVnvVgWMHqF+l9kDIUka8eBeUF2/Xvr6KEWrQd2nd5V9lkLRQf7b88 eizA== X-Gm-Message-State: AA6/9Rm8ziHnhLhneV1bySRjwByUCtF83zKHMZVCM7EivwpBckDjzXVtJC/ZxBilDsGszJbSmbYEY1SZeP19Fw== X-Received: by 10.36.225.193 with SMTP id n184mr13321077ith.100.1475841203591; Fri, 07 Oct 2016 04:53:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.1.203 with HTTP; Fri, 7 Oct 2016 04:53:22 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Fri, 7 Oct 2016 12:53:22 +0100 Message-ID: Subject: Re: PATCH: To fix the issue in Debugger module (pgAdmin4) To: Murtuza Zabuawala Cc: 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 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. Thanks. -- 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