Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bO0yV-0006aM-Jb for pgadmin-hackers@arkaria.postgresql.org; Fri, 15 Jul 2016 11:08:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bO0yV-0004NN-1S for pgadmin-hackers@arkaria.postgresql.org; Fri, 15 Jul 2016 11:08:07 +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 1bO0yI-00049d-34 for pgadmin-hackers@postgresql.org; Fri, 15 Jul 2016 11:07:54 +0000 Received: from mail-io0-x230.google.com ([2607:f8b0:4001:c06::230]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bO0yA-00051a-MO for pgadmin-hackers@postgresql.org; Fri, 15 Jul 2016 11:07:52 +0000 Received: by mail-io0-x230.google.com with SMTP id 38so101182261iol.0 for ; Fri, 15 Jul 2016 04:07:46 -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=OasdMhM4h3RucmeDhsxXvyiqVrEKZ7CvAFs8zqMIKkI=; b=Wfj64zHwi0hp/YGgDZY9snujft2/QkpA5BAZ8M3DpaW6DnhI7HzZ69uK/ygocmPGlP 2e+o/5lBuvdRZ48t8quT6cn1IigTpdp7EtWgib8kjC/xrJnmHKMJeOuem4LdDAgUZv/H oToJN4sK3qHsnr+V0VdA+GEMINcrdlZQWGPkFSyZVByajfmzkfLhmidP5VqBOowd0VQW LkXG1/XzdaXogrifEsKNkH5/s3y+g+oDkZw9ksT7cUhfrNpSEIrV9Dd1pFeBQHcMStfQ C3DFvk74RkCsNiNuI41Hs+lybeOgOt4Ea2LSYdo7G1rjhCCuaWdQ8v89piI89JvAC88w XQOg== 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=OasdMhM4h3RucmeDhsxXvyiqVrEKZ7CvAFs8zqMIKkI=; b=P8ImwNsXwvmgHIYE/63HFPBcoNePP9O9FRdqy7vQUXcxt1GSSJZ0izKy/gFhdjFZGJ BAF9rih0vDwauAwKEAo13cpGAO+3aXvvcTWbkMlhXuf9ZB/+0uy6bhHuJ26Z9hXwOGQ0 HnWz37uGXO/aUVn9dUV0gElA0BuBZZLLOjL/6OMWpuIajjSsiBDHjsFzVedY9Va8I+TO y10TYOHj3dz8xZsjpi2dbXiNiABFhXNAn6GWJQ0QSEha7zlUznHE+1DkuhEHW0Pyel9m 44Rf5936RA7o92lJ3pWv/i52kY7413rcNmAJkG/kXnQ7FXCuTcQrCOb+xJLDZGBljqJQ Y2kQ== X-Gm-Message-State: ALyK8tLkRRkPlB3R3Oj4JmEobPO66WnxKDS/09sZKbJbTC61Mrf9iS/AcP/rlhGcfFQPVZKTewAjCdClSn30ug== X-Received: by 10.107.201.138 with SMTP id z132mr20275182iof.156.1468580865841; Fri, 15 Jul 2016 04:07:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.208.97 with HTTP; Fri, 15 Jul 2016 04:07:45 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Fri, 15 Jul 2016 12:07:45 +0100 Message-ID: Subject: Re: PATCH: To fix the issue where cast function causes freeze (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 Thu, Jul 14, 2016 at 10:06 AM, Murtuza Zabuawala wrote: > Hi, > > PFA patch to fix the issue where if user use cast function and it causes > freeze in query tool. > (RM#1438) This fixes the hang, but then displays the wrong data type for the first column - e.g. SELECT CURRENT_TIMESTAMP, CAST ( CURRENT_TIMESTAMP AS text ) ; will show the columns as "now text(8)" and "now text", when it should be "now timestamp with time zone", "now text" Note that SELECT CURRENT_TIMESTAMP also gets this a little wrong - it shows "now timestamp with time zone(8)" (the size shouldn't be included) -- 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