Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ba14d-0003im-As for pgadmin-hackers@arkaria.postgresql.org; Wed, 17 Aug 2016 13:40:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ba14c-0000gP-OT for pgadmin-hackers@arkaria.postgresql.org; Wed, 17 Aug 2016 13:40:02 +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.84_2) (envelope-from ) id 1ba14P-0000SH-QQ for pgadmin-hackers@postgresql.org; Wed, 17 Aug 2016 13:39:49 +0000 Received: from mail-it0-x22c.google.com ([2607:f8b0:4001:c0b::22c]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1ba14L-0007AC-MS for pgadmin-hackers@postgresql.org; Wed, 17 Aug 2016 13:39:48 +0000 Received: by mail-it0-x22c.google.com with SMTP id e63so61059641ith.1 for ; Wed, 17 Aug 2016 06:39:45 -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=rLPZB6TtYvQiPr+SqfSzbl1rHwS8/0RPX2oOM7x5t+k=; b=rKSfJBTUtm0XrR2GI+Plbr3AX4Ds6VdCt9rMoC2djGJLDIt4FVipLV0QnM6KoA4GC6 j1I5QJpzsiXb2EsZriFzhP8Jmaeq958wMW4yqO9/JNRckgLe209kYeEakjxBd1xw3v55 E8o1qkJhkmZI5ynMSK8/AVv5ywWF5I/g9RzsJjCBQbKyw5mDDUEbr7OS6rwumbm+jXH/ T/JlFxBfTKQQIcFV/eRBin9MzaqCr1Se6v9yZ+SjAEBKY7BcRpvO6MtFYVFPWUKkbhIG bbE1M6OY9fd2HduMOrKM0hty8CWHFN7cUhiqe1aSuj3iH4xUIgIx5BCnhdgLNgygg7Jo BdWg== 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=rLPZB6TtYvQiPr+SqfSzbl1rHwS8/0RPX2oOM7x5t+k=; b=Rzl8DjA2HjSlAtarotHtkOS5hZJQBW8zBy2FdbB/h0diE7+xmAo9eKV1OeHLRvwPY5 jHzWzvdmaKemQ5qFi0CIvFUdsijDFd5IgmzwVUA2n9XMomDfA3aU/UqVcon/qO+mADIx 8XRRYgTrz179RKrzHwThtV0GX1Av/g/H+ZOLW/GY3sIMRQIHGy98G1Cc8TisTgxYTFc7 WFvhl5Q6hc/S2THQPcxb2qWspV8+VwW4TAVbzFmSw0VHu2OYMESHYW4xgF+4LuALuhML vxMfZFWVhSn46WgoF8d3hmzgZgu9fR4CA/Lyw3bgMs6hns1Px1ozGcs47wXiLIJU/TYT 2K/Q== X-Gm-Message-State: AEkoousoUxc/JzNyFdMtCYzmer2+J6024UojSQpucF4sXy4wloikryBk1ZJ33jKAyqaIHEGVsp+XCNVVrHnHMg== X-Received: by 10.36.2.18 with SMTP id 18mr27089134itu.35.1471441183911; Wed, 17 Aug 2016 06:39:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.208.97 with HTTP; Wed, 17 Aug 2016 06:39:43 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Wed, 17 Aug 2016 14:39:43 +0100 Message-ID: Subject: Re: PATCH: To fix the issue where message panel was showing incomplete info (pgAdmin4) To: Murtuza Zabuawala Cc: Ashesh Vashi , 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 Hi On Tue, Aug 16, 2016 at 3:56 PM, Murtuza Zabuawala wrote: > Hi Dave, > > PFA updated patch. I just tested this, and found a number of issues: - For a query like VACUUM FULL ANALYZE VERBOSE, the query runtime is not displayed at the end of the messages. It is for SELECT queries (note: pgAdmin 3 returns "Query returned successfully with no result in 6.6 secs."). - Messages seem to be duplicated. For example, the output from the query above, run on pgAdmin3 is 95KB, whilst from pgAdmin4 it's 3.1MB(!). I believe it's because you're not clearing __notices in messages(). I'm not entirely clear why that's even needed though - can't we just return messages from self.conn.notices and clear that directly? - The messages div should scroll to the end as it's updated, per discussion. 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