Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bVGbS-0003nX-Af for pgadmin-hackers@arkaria.postgresql.org; Thu, 04 Aug 2016 11:14:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bVGbR-00026y-Tu for pgadmin-hackers@arkaria.postgresql.org; Thu, 04 Aug 2016 11:14:17 +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 1bVGbR-00026q-Gy for pgadmin-hackers@postgresql.org; Thu, 04 Aug 2016 11:14:17 +0000 Received: from mail-it0-x236.google.com ([2607:f8b0:4001:c0b::236]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bVGbO-0000OL-BE for pgadmin-hackers@postgresql.org; Thu, 04 Aug 2016 11:14:16 +0000 Received: by mail-it0-x236.google.com with SMTP id u186so319785715ita.0 for ; Thu, 04 Aug 2016 04:14:14 -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=zsFRZSDepo+M3C9Jkkdjdpo22NVJaKOwJ4VO9LPv0no=; b=OITjAx7AZBn0iXztoZfqkJqWvLZCTU758KG/fDlXdYDUTH34JBu9u/6cuFMsSu7Z1y HTOWtW12vrzbU+DedB9seefKTpdyVG5pBCbKX/F1aoXIxQOzVhs3QjXEIIT1WQKgLflQ EKJS1wdn8eiIg62mImM8v1MWhJWziW7Pwys+Wctp3B0zntZl7XYdRqGwGOa8ISnzMnW0 Ac/lwxpCb6U5nBWkMTZk1G9ZiwKeg1c4TTulilDj7DJxwb3sjRzr+02MUxYSjGFH3V+Z gKtxH8u6nBp/fKzPT4Inut1/zi71TF3VFllStYxaXvCSTPA1Xv9rOrMBL9sgfOhlgwGG PVcw== 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=zsFRZSDepo+M3C9Jkkdjdpo22NVJaKOwJ4VO9LPv0no=; b=NmJ2yHffSF0vc/iMhvS4E4PzOsBC0ym83us5riJ+nSGNJAFygIOqPQ8ZsgaNZqV3yP smKd6doOaEl+Zh3LCod3c1NhBnQSqkUtVvHwt9DT/REd00jnjNjpxMdc9sdnqcg4y4/R f4HDeRPJr57pNlUqe0WLvj1Xe809zde2oc9i2Ktm51x1iWkVUMZANsUnS1xXi+NMp7vZ nJh9C59hY8QdanhgqgES5E73NBi4onkgl//Goegg16yzL4txjVUHz1Ai6a6P77wuS7vr IJT3KOwvz4BY3TLVUFYYtstjZxTj+CsUJ6ZE8nNsXSV2nVBaafV8W58pSAyeZu14nD99 mNJA== X-Gm-Message-State: AEkoouuR3o9HEqYEIBfUsTCz9ufAkAC7TIKNa/mOob91hoYJsCdJMH7o2Rj5NMstH4gX5BlkncqM/Tu27QAgxQ== X-Received: by 10.36.14.20 with SMTP id 20mr24460539ite.88.1470309253573; Thu, 04 Aug 2016 04:14:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.208.97 with HTTP; Thu, 4 Aug 2016 04:14:12 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Thu, 4 Aug 2016 12:14:12 +0100 Message-ID: Subject: Re: [Patch][pgAdmin4]: RM1519 - Error running VACUUM FULL FREEZE ANALYZE VERBOSE To: Surinder Kumar 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 Thanks, applied. On Thu, Aug 4, 2016 at 10:59 AM, Surinder Kumar wrote: > Hi > > This issue is reproduced to me with following steps.: > 1) When the query "VACUUM FULL FREEZE ANALYZE VERBOSE" is run for first > time, it runs without error. > 2) then the query "SELECT 1" is executed. no error. > 3) But when query in step #1 is run again, it throws an error: > TypeError: cannot concatenate 'str' and 'NoneType' objects > > 4) Now executing query in step #2 throws following error: > Error Message:execute cannot be used while an asynchronous query is > underway********** Error ********** > > Reason: > When the query in step #1 is run for second time as in step #3, it fails due > to python error thus loading spinner stops and run query button is enabled. > but the query is still running in background. > > then on running query in step #4 throws error with message "asynchronous > query is underway" because last run query is not yet finished. > > Solution: > This is due to python error. > String type and NoneType is now formatted properly which resolves the issue. > > Please find attached patch and review. > > > Thanks, > Surinder Kumar > > > -- > 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 -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers