Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bk7OE-0002Gd-9A for pgadmin-hackers@arkaria.postgresql.org; Wed, 14 Sep 2016 10:26:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bk7OD-0002lU-Rr for pgadmin-hackers@arkaria.postgresql.org; Wed, 14 Sep 2016 10:26:01 +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 1bk7O0-0002XI-LM for pgadmin-hackers@postgresql.org; Wed, 14 Sep 2016 10:25:48 +0000 Received: from mail-it0-x233.google.com ([2607:f8b0:4001:c0b::233]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bk7Ny-0004Ca-3U for pgadmin-hackers@postgresql.org; Wed, 14 Sep 2016 10:25:47 +0000 Received: by mail-it0-x233.google.com with SMTP id n143so16686921ita.1 for ; Wed, 14 Sep 2016 03:25: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=pySO7cPnzvKJ3ZeRUrFMPuIW0NVLG8g9uL9+zbl+V68=; b=FiXSGu+lTizKrD1WWl1oyxftyhuCixjP0aHJj/mXYwNyqyaMzIj8BwtYaBlyEMsl7W B5cbyyiWKfHZ7BLrL4PFm066VZcRzMYIugPsfEKAVHg+IZJNnjLfaRl4Fm9MxtFcaw1q 42AYP7ItOZOj2o+BgtFfqhHLX9tnTaiezTi2Nqp/NkypA2RZWBVY1W9Vo/7aS26mMxH5 E5/0EFvcbmECRN1yav6YwLmSB6fVRYF2ThKL9Mck9SjI9FMGJDEchE62YNNzGZyraqSy nMeYhF2yt/+blyHab50rDn0iuUqxc6s5rjCrYux0cnQ5oHUiOkvBcNnXu7k9+A+xD95j 7qGg== 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=pySO7cPnzvKJ3ZeRUrFMPuIW0NVLG8g9uL9+zbl+V68=; b=SqxfDSYD/i4OB5ey+J5ruf+EGib57ayYUlEw4toHjCKWIU5C3U+nfYQn++Rv5yjNma eDRwb9IGNSjWUDxl1VGZoNY9bpUbtXC2wwHfrFu4vt//ydS9KO3QB0gSC65BTxl2PbMe W2+VhxfZZ0PmsTsrj6qzRxQvJL/t1XV0LPKeQnJLwJTM6byxZmouobL9P6OKFDgi6HQD tiUITSIDRb4G7VJe9B+35XmOm3nt62hLDUYijVR6E302j1wP42fIwzqaz8IxKwV0jtXZ rcnrqe5z5/WJPFZ2KsEEOJG8cSrPZqLDICbC0SmZIpN6YMUq4yl4O7p9mjvfa6tGQ1/A AwDA== X-Gm-Message-State: AE9vXwNqP1Xvu5UocVMaM13B2g8SBQTAbF4lAYQRNmIvxn3/5T4uQtJL4mJVX4B7eyFocCbBOIBvEqRN1vkYiw== X-Received: by 10.107.170.87 with SMTP id t84mr4619719ioe.87.1473848745417; Wed, 14 Sep 2016 03:25:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.1.203 with HTTP; Wed, 14 Sep 2016 03:25:44 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Wed, 14 Sep 2016 11:25:44 +0100 Message-ID: Subject: Re: [pgAdmin4][Patch]: RM1674 - Reverse engineered SQL for functions with default values is incorrect 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 On Wed, Sep 14, 2016 at 11:23 AM, Surinder Kumar wrote: > On Wed, Sep 14, 2016 at 3:30 PM, Dave Page wrote: >> >> Thanks - committed with a couple of minor formatting tweaks: >> >> - Remove the leading space before arguments (e.g. s/, /\r\t/ instead >> of s/,/\r\t/) >> - Put the first argument on a new line as well. > > It seems fine except the case when there are no arguments, the closing > bracket ends in next line. Is it ok? I'm not overly upset by it :-). If it irks you, feel free to change it! >> >> >> Please double-check I didn't break anything that I've missed! > > It doesn't break anything Cool, thanks. >> >> On Tue, Sep 13, 2016 at 12:41 PM, Surinder Kumar >> wrote: >> > Hi >> > >> > Patch with following changes: >> > >> > 1) In SQL pane, the signature in comments had arguments with name and >> > type, >> > Now it will show arguments with type only. >> > >> > 2) There is no indent+newline between arguments (there isn't even a >> > space). >> > - Fixed >> > >> > 3) The default value for the last argument is omitted. - Fixed >> > Last argument is omitted because the value for the last argument we got >> > from >> > table is empty. >> > Now we form function signature in the get_definition.sql using >> > 'pg_catalog.pg_get_function_arguments' method. >> > >> > Above changes will reflect in Functions, Procedures & Trigger function >> > Nodes. >> > >> > Please review attached patch. >> > >> > 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 > > -- 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