Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eyC3B-0004W3-4N for pgadmin-hackers@arkaria.postgresql.org; Tue, 20 Mar 2018 07:51:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eyC38-0000ll-CT for pgadmin-hackers@arkaria.postgresql.org; Tue, 20 Mar 2018 07:51:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eyC38-0000lb-0d for pgadmin-hackers@lists.postgresql.org; Tue, 20 Mar 2018 07:51:14 +0000 Received: from mail-qt0-x22b.google.com ([2607:f8b0:400d:c0d::22b]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eyC30-00070L-3U for pgadmin-hackers@postgresql.org; Tue, 20 Mar 2018 07:51:13 +0000 Received: by mail-qt0-x22b.google.com with SMTP id l25so640122qtj.1 for ; Tue, 20 Mar 2018 00:51:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=bHbqG5o+avU6M62QzSxhFtlfJ/x7NgyVHoi6k+3FNtE=; b=asqPJrUhbKw4qBgcPOhMZDmqH1+VuTBjUFlGlm4Ox6X/IXNON559aNA+7xm4Y/7rre NsCE9QrR/Kv+8JkKwC476l0d0M6ywau8ojQ9ls0hyrPoN4jhkra8dHzyZcdVZiow/hRw Cu4QeJHJfP3KgzbNnGzy5I2mNj05WMapJr9EOYzWsh67BdiOyFpvdubpwKN/EdXiz43v M4dzMdUX/G2jijxLfnQdcuO3o1FZim7dJJqothxThfP6YjTMVgX7cHVJKXWQrC1tdWKs ni1jmQL0c9uYgnmRzgs8Beri4NNNqo118rJtwfD8ntGXYqzrEWKd/+6Vbj7/wj5WqhPw sP+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=bHbqG5o+avU6M62QzSxhFtlfJ/x7NgyVHoi6k+3FNtE=; b=Z6vMB1DS2drVDZ/hr5Sk4/U297SIkwd2oesauUuUz+EAW+3W4JKaix0Dg9r0RxkP3K cmbKPIRfH/H/p21qbIJsr669r9zslTgv/0S5jvC4bWgpuoRDhvKTn9NdfQk8zLg/SLQ8 CZhUoTVVTC+jsvMd8av7oGJTx33nBVR6lc0K62RdDCgrG9Hc6YieOLUGN/KLYyl9Iyf4 fWCnFx0JBxPi6eTZVqqFLhIZPXiu52Ba8mzNXYtWOYvogyykRYbNp5t5DMRRYs79BMdY ruTpYFzGXZ+NuO3eX5wcR01XmpmYfexpaLzaih+Ijoy3SDDHtol2Ny2+EymeZdt01OoG Jhdw== X-Gm-Message-State: AElRT7HiXmj0Xo3o0JLoegS43QehFjGc/Myx17Sks+Sr3vLpepkZCLkf iu9xav5bY1R2zn8sCWIsga2IKx2NoD17cgYZn/aj1g== X-Google-Smtp-Source: AG47ELtMeq/JydDeS9a1mIgmXBFKaBF+iBt5yAff0doHEmHHEFFfMBXzMoZ311paT6HURpoyuTo5zjzkhjsTDBlEDSI= X-Received: by 10.237.47.165 with SMTP id m34mr23146143qtd.178.1521532263575; Tue, 20 Mar 2018 00:51:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.194.131 with HTTP; Tue, 20 Mar 2018 00:51:02 -0700 (PDT) In-Reply-To: References: From: Akshay Joshi Date: Tue, 20 Mar 2018 13:21:02 +0530 Message-ID: Subject: Re: [pgadmin][patch] [GreenPlum] When user press Explain Plan and Explain analyze plan an error is displayed To: Joao Pedro De Almeida Pereira Cc: pgadmin-hackers , Dave Page Content-Type: multipart/alternative; boundary="94eb2c12522415dba50567d35659" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --94eb2c12522415dba50567d35659 Content-Type: text/plain; charset="UTF-8" Hi Joao It seems that this fix broke the functionality of RM #2815. It is mentioned in the RM what needs to be fixed now and I am currently working on it. While fixing the issue following problem that I found - In "start_running_query.py" file, we need to remove check "if conn.connected()" from "__execute_query" function as we required exception to be thrown while executing the query to identify the ConnectionLost. - In "execute_query.js" we have used *axios* to execute the query and in case of exception, object is different then normal javascript response object. - We call following functions when exception or error comes and send the "*.response.data*" as parameter - wasConnectionLostToServer(): Check for the readyState parameter, which is not the part of ".response.data". - extractErrorMessage(): Check for the "responseJSON" and " responseJSON.info", which is not the part of ".response.data". - is_pga_login_required(): Check for the "responseJSON" and " responseJSON.info", which is not the part of ".response.data". - is_new_transaction_required(): Check for the "responseJSON" and " responseJSON.info", which is not the part of ".response.data".