Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ar1KJ-0000U7-RI for pgadmin-hackers@arkaria.postgresql.org; Fri, 15 Apr 2016 10:50:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ar1KJ-000767-Dz for pgadmin-hackers@arkaria.postgresql.org; Fri, 15 Apr 2016 10:50:15 +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 1ar1K5-0006ny-GV for pgadmin-hackers@postgresql.org; Fri, 15 Apr 2016 10:50:01 +0000 Received: from mail-io0-f175.google.com ([209.85.223.175]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1ar1K1-0004nE-40 for pgadmin-hackers@postgresql.org; Fri, 15 Apr 2016 10:50:00 +0000 Received: by mail-io0-f175.google.com with SMTP id u185so130710295iod.3 for ; Fri, 15 Apr 2016 03:49:56 -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=nZdHjP/G91uJCJ9l9oHTEGHydFrKyeYZxhhpQHXJx/8=; b=exrTwngwfT7vzNL4wmsnqFs/jd2FAzxuKB6qgTQjQnSHeAG0LzdoDP1fggO4/a28Tq UCu6Ievadi1GNNCGA34qbgiWwoEOJo4eH0YZeD9oXZE3adKTkSWfld6W/jZJWcB+Gb7J fYbhHRc00kFI62+hs332TZuNCS3hkEAnW6i8LPh9g8uy3Yfo5fZF4p1/t3uo9UN8rnXq cQzfxOTGH4/X+oi5lvLhGA/wqeEoY80CvfsM4d6D+wTgDSYcwVIFvAZFoRXhq8MM/dyQ uXYTRWvsFEB+fgaWOTwIoI0fx297CuRSGT/m509xZVBXxZuomaPGZ7lfTDGRnlrLKvGW KKaQ== 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=nZdHjP/G91uJCJ9l9oHTEGHydFrKyeYZxhhpQHXJx/8=; b=Cc1dtv5j6Sgb85KJK15fzf8WWxiYHS5ANjtFqdsAVXiOmuWds/1L7ExRbSpwEu6SFr sb7y3Gbx9u20UxGSJ7+pHzSbw9ztk9/31ZvLcM3Ruo+N7X7f/3kkNB5VgkzlY3O6Q1yQ 0/B+LNCHplVGJpLMS8q0pwTovbm1LVnaWaRtVhQ4ZLBwoEzgmeRlAisldRuffHD9gClU jxy3CQBMONBowafgKUYdP5dQReYDl2K4aAop8hqrRvQHWOPA16BAIjhX/irefZt0uNrr ODwXOeISl7eAWdnAb3epjrWhRKxZogYOLW3+kofotBUSI23lkVEvNIn8Rr8aCZJUrZyJ Z5hw== X-Gm-Message-State: AOPr4FXfqRo4utjgRe4qJH+9BDCOxJ6tsdqm8Y3sIsTc9YhsWC6uiEAG5q2VDaWoVUkJg1Uu7DS+trSIx/OSdix3 X-Received: by 10.107.41.210 with SMTP id p201mr24229652iop.106.1460717350179; Fri, 15 Apr 2016 03:49:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.39.5 with HTTP; Fri, 15 Apr 2016 03:48:50 -0700 (PDT) In-Reply-To: References: From: Ashesh Vashi Date: Fri, 15 Apr 2016 16:18:50 +0530 Message-ID: Subject: Re: Dialogues not closing To: Dave Page Cc: pgadmin-hackers Content-Type: multipart/mixed; boundary=001a1141f3a2c676d1053083c24f 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 --001a1141f3a2c676d1053083c24f Content-Type: multipart/alternative; boundary=001a1141f3a2c676cd053083c24d --001a1141f3a2c676cd053083c24d Content-Type: text/plain; charset=UTF-8 Oops.. clicked before attaching... -- Thanks & Regards, Ashesh Vashi EnterpriseDB INDIA: Enterprise PostgreSQL Company *http://www.linkedin.com/in/asheshvashi* On Fri, Apr 15, 2016 at 4:18 PM, Ashesh Vashi wrote: > Hi Dave, > > I was able to reproduce the issue with the help of Murtuza. > I missed one corner case - it was not able to close the dialog, when the > parent/collection has not yet been loaded. > > Please find the updated patch. > This patch only includes the dialog issue. > Please let me know - if you still see the issue. > > I've committed the patch about the objects (model/collection/views) > release. > > > -- > > Thanks & Regards, > > Ashesh Vashi > EnterpriseDB INDIA: Enterprise PostgreSQL Company > > > > *http://www.linkedin.com/in/asheshvashi* > > > On Fri, Apr 15, 2016 at 1:36 PM, Ashesh Vashi < > ashesh.vashi@enterprisedb.com> wrote: > >> Hi Dave, >> >> >> On Fri, Apr 15, 2016 at 1:20 PM, Dave Page wrote: >> >>> >>> >>> On Fri, Apr 15, 2016 at 6:32 AM, Ashesh Vashi < >>> ashesh.vashi@enterprisedb.com> wrote: >>> >>>> On Fri, Apr 15, 2016 at 2:23 AM, Dave Page wrote: >>>> >>>>> Hey Ashesh, >>>>> >>>>> We have an issue with dialogues not closing on Save button presses. >>>>> One of the team told me yesterday or the day before that it's a >>>>> general issue, not one specific to the patch I was reviewing at the >>>>> time, which I've been finding seems to be the case. >>>>> >>>>> Any idea what this issue is? >>>>> >>>> Sure - I will look into it. >>>> >>> >>> Thanks - please make it a priority; I'm at PG Conf NYC next week and >>> expect to be doing lots of demos. >>> >> Please find the patch for the same. >> >> This also includes some of the cleanup required to solve some of the >> memory leak issues. >> >> I was not able to reproduce the issue at my end, but - I've idea of when >> it could fail to close the panel, which I have resolved in this patch. >> Can you please test it? >> >> -- >> >> Thanks & Regards, >> >> Ashesh Vashi >> EnterpriseDB INDIA: Enterprise PostgreSQL Company >> >> >> >> *http://www.linkedin.com/in/asheshvashi* >> >> >> >>> >>> -- >>> Dave Page >>> Blog: http://pgsnake.blogspot.com >>> Twitter: @pgsnake >>> >>> EnterpriseDB UK: http://www.enterprisedb.com >>> The Enterprise PostgreSQL Company >>> >> >> > --001a1141f3a2c676cd053083c24d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Oops.. clicked before attaching...


--

Thanks & Regards,

Ashesh V= ashi
EnterpriseDB INDIA: Enterprise PostgreSQL Company

<= br>

<= a href=3D"http://www.linkedin.com/in/asheshvashi" target=3D"_blank">http= ://www.linkedin.com/in/asheshvashi


On Fri, Apr 15, 2016 at 4:18 PM, Ashesh Vash= i <ashesh.vashi@enterprisedb.com> wrote:
Hi Dave,

I w= as able to reproduce the issue with the help of Murtuza.
I missed= one corner case - it was not able to close the dialog, when the parent/col= lection has not yet been loaded.

Please find the u= pdated patch.
This patch only includes the dialog issue.
Please let me know - if you still see the issue.

I've committed the patch about the objects (model/collection/views) re= lease.


--

Thanks & Regards,

Ashesh Vashi
EnterpriseDB INDIA: Enterprise PostgreSQL Company

<= br>

<= a href=3D"http://www.linkedin.com/in/asheshvashi" target=3D"_blank">http= ://www.linkedin.com/in/asheshvashi


On Fri, Apr 15= , 2016 at 1:36 PM, Ashesh Vashi <ashesh.vashi@enterprisedb.com= > wrote:
<= div class=3D"gmail_extra">

Hi Dave,


On Fri, Apr 15, 2016 at 1:20 PM, Dave Pa= ge <dpage@pgadmin.org> wrote:

=

On Fri,= Apr 15, 2016 at 6:32 AM, Ashesh Vashi <ashesh.vashi@enterpris= edb.com> wrote:

On Fri, Apr 15, 2016 at 2:23 AM, Dave Pa= ge <dpage@pgadmin.org> wrote:

Hey Ashesh,

We have an issue with dialogues not closing on Save button presses.
One of the team told me yesterday or the day before that it's a
general issue, not one specific to the patch I was reviewing at the
time, which I've been finding seems to be the case.

Any idea what this issue is?
Sure - I will look= into it.

Th= anks - please make it a priority; I'm at PG Conf NYC next week and expe= ct to be doing lots of demos.=C2=A0
Please find the patch for the same.

This = also includes some of the cleanup required to solve some of the memory leak= issues.

I was not able to reproduce the issue at = my end, but - I've idea of when it could fail to close the panel, which= I have resolved in this patch.
Can you please test it?

--

Thanks & Regards,

Ashesh Vashi
EnterpriseDB INDIA:=C2=A0Enterprise PostgreSQL Company<= /span>


http://www.linkedin.com/in/asheshva= shi



=

--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitt= er: @pgsnake

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise Postg= reSQL Company



--001a1141f3a2c676cd053083c24d-- --001a1141f3a2c676d1053083c24f Content-Type: application/octet-stream; name="dialog_close_v2.patch" Content-Disposition: attachment; filename="dialog_close_v2.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_in1ldnze0 ZGlmZiAtLWdpdCBhL3dlYi9wZ2FkbWluL2Jyb3dzZXIvdGVtcGxhdGVzL2Jy b3dzZXIvanMvbm9kZS5qcyBiL3dlYi9wZ2FkbWluL2Jyb3dzZXIvdGVtcGxh dGVzL2Jyb3dzZXIvanMvbm9kZS5qcwppbmRleCBhMzhiZGEyLi4zZTE0OWQz IDEwMDY0NAotLS0gYS93ZWIvcGdhZG1pbi9icm93c2VyL3RlbXBsYXRlcy9i cm93c2VyL2pzL25vZGUuanMKKysrIGIvd2ViL3BnYWRtaW4vYnJvd3Nlci90 ZW1wbGF0ZXMvYnJvd3Nlci9qcy9ub2RlLmpzCkBAIC05MDcsOCArOTA3LDgg QEAgZnVuY3Rpb24oJCwgXywgUywgcGdBZG1pbiwgTWVudSwgQmFja2JvbmUs IEFsZXJ0aWZ5LCBwZ0Jyb3dzZXIsIEJhY2tmb3JtKSB7CiAgICAgICAgIH0u YmluZChwYW5lbCksCiAgICAgICAgIGNsb3NlUGFuZWwgPSBmdW5jdGlvbigp IHsKICAgICAgICAgICAvLyBDbG9zaW5nIHRoaXMgcGFuZWwKLSAgICAgICAg ICB0aGlzLmNsb3NlKCkKLSAgICAgICAgfSwKKyAgICAgICAgICB0aGlzLmNs b3NlKCk7CisgICAgICAgIH0uYmluZChwYW5lbCksCiAgICAgICAgIHVwZGF0 ZVRyZWVJdGVtID0gZnVuY3Rpb24oKSB7CiAgICAgICAgICAgdmFyIHBhbmVs ID0gdGhpczsKIApAQCAtOTQwLDkgKzk0MCw3IEBAIGZ1bmN0aW9uKCQsIF8s IFMsIHBnQWRtaW4sIE1lbnUsIEJhY2tib25lLCBBbGVydGlmeSwgcGdCcm93 c2VyLCBCYWNrZm9ybSkgewogICAgICAgICAgIGlmICh2aWV3Lm1vZGVsLnRu b2RlICYmICdfaWQnIGluIHZpZXcubW9kZWwudG5vZGUpIHsKICAgICAgICAg ICAgIHZhciBkID0gXy5leHRlbmQoe30sIHZpZXcubW9kZWwudG5vZGUpLAog ICAgICAgICAgICAgICBmdW5jID0gZnVuY3Rpb24oaSkgewotICAgICAgICAg ICAgICAgIHNldFRpbWVvdXQoZnVuY3Rpb24oKSB7Ci0gICAgICAgICAgICAg ICAgICBjbG9zZVBhbmVsKCk7Ci0gICAgICAgICAgICAgICAgfSwgMCk7Cisg ICAgICAgICAgICAgICAgc2V0VGltZW91dChmdW5jdGlvbigpIHtjbG9zZVBh bmVsKCk7fSwgMCk7CiAgICAgICAgICAgICAgICAgaWYgKGkpIHsKICAgICAg ICAgICAgICAgICAgIHRyZWUuc2VsZWN0KGksIHtmb2N1czogdHJ1ZX0pOwog ICAgICAgICAgICAgICAgIH0KQEAgLTk2Miw2ICs5NjAsMTEgQEAgZnVuY3Rp b24oJCwgXywgUywgcGdBZG1pbiwgTWVudSwgQmFja2JvbmUsIEFsZXJ0aWZ5 LCBwZ0Jyb3dzZXIsIEJhY2tmb3JtKSB7CiAgICAgICAgICAgICAgICAgICAg IGl0ZW1EYXRhOiBkLAogICAgICAgICAgICAgICAgICAgICBzdWNjZXNzOiBm dW5jdGlvbihpLCBvKSB7CiAgICAgICAgICAgICAgICAgICAgICAgZnVuYyhv Lml0ZW1zLmVxKDApKTsKKyAgICAgICAgICAgICAgICAgICAgfSwKKyAgICAg ICAgICAgICAgICAgICAgZmFpbDogZnVuY3Rpb24oKSB7CisgICAgICAgICAg ICAgICAgICAgICAgLy8gV2Ugc3RpbGwgd2FudCB0byBjbG9zZSB0aGUgcGFu ZWwKKyAgICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhhcmd1bWVu dHMpOworICAgICAgICAgICAgICAgICAgICAgIGZ1bmMobnVsbCk7CiAgICAg ICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgIH0pOwogICAg ICAgICAgICAgICAgICAgcmV0dXJuOwpAQCAtMTAxNyw3ICsxMDIwLDkgQEAg ZnVuY3Rpb24oJCwgXywgUywgcGdBZG1pbiwgTWVudSwgQmFja2JvbmUsIEFs ZXJ0aWZ5LCBwZ0Jyb3dzZXIsIEJhY2tmb3JtKSB7CiAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgIGZ1bmMobnVsbCk7CiAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICB9LAogICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgZmFpbDogZnVuY3Rpb24oKSB7CisgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgIC8vIFdlIHdvdWxkIHN0aWxsIGxpa2UgdG8gY2xvc2Ug aXQuCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnNvbGUu bG9nKGFyZ3VtZW50cyk7CisgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgIGZ1bmMobnVsbCk7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICB9CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAg ICAgICAgICAgICAgICAgICAgIH0KQEAgLTEwNTIsNjggKzEwNTcsODEgQEAg ZnVuY3Rpb24oJCwgXywgUywgcGdBZG1pbiwgTWVudSwgQmFja2JvbmUsIEFs ZXJ0aWZ5LCBwZ0Jyb3dzZXIsIEJhY2tmb3JtKSB7CiAgICAgICAgICAgICAg ICAgICAgICAgICBmdW5jKGkpOwogICAgICAgICAgICAgICAgICAgICAgIH0s CiAgICAgICAgICAgICAgICAgICAgICAgZmFpbDogZnVuY3Rpb24oKSB7Cisg ICAgICAgICAgICAgICAgICAgICAgICAvLyBXZSB3b3VsZCBzdGlsbCBsaWtl IHRvIGNsb3NlIGl0LgogICAgICAgICAgICAgICAgICAgICAgICAgY29uc29s ZS5sb2coYXJndW1lbnRzKTsKKyAgICAgICAgICAgICAgICAgICAgICAgIGZ1 bmMobnVsbCk7CiAgICAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAg ICAgICAgICAgICB9KTsKIAogICAgICAgICAgICAgICAgICAgfSwKICAgICAg ICAgICAgICAgICAgIGZhaWw6IGZ1bmN0aW9uKCkgeworICAgICAgICAgICAg ICAgICAgICAvLyBXZSB3b3VsZCBzdGlsbCBsaWtlIHRvIGNsb3NlIGl0Lgog ICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmxvZyhhcmd1bWVudHMpOwor ICAgICAgICAgICAgICAgICAgICBmdW5jKG51bGwpOwogICAgICAgICAgICAg ICAgICAgfQogICAgICAgICAgICAgICAgIH0pOworICAgICAgICAgICAgICB9 IGVsc2UgeworICAgICAgICAgICAgICAgIGZ1bmMobnVsbCk7CiAgICAgICAg ICAgICAgIH0KICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAg IHRyZWUuYXBwZW5kKG51bGwsIHsKICAgICAgICAgICAgICAgICBpdGVtRGF0 YTogZCwKICAgICAgICAgICAgICAgICBzdWNjZXNzOiBmdW5jdGlvbihpLCBv KSB7CiAgICAgICAgICAgICAgICAgICBmdW5jKGkpOworICAgICAgICAgICAg ICAgIH0sCisgICAgICAgICAgICAgICAgZmFpbDogZnVuY3Rpb24oKSB7Cisg ICAgICAgICAgICAgICAgICAvLyBXZSB3b3VsZCBzdGlsbCBsaWtlIHRvIGNs b3NlIGl0LgorICAgICAgICAgICAgICAgICAgY29uc29sZS5sb2coYXJndW1l bnRzKTsKKyAgICAgICAgICAgICAgICAgIGZ1bmMobnVsbCk7CiAgICAgICAg ICAgICAgICAgfQogICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgIH0K ICAgICAgICAgICB9IGVsc2UgewotICAgICAgICAgIC8qCi0gICAgICAgICAg ICogU29tZXRpbWUgd2UgZG9uJ3QgZ2V0IG5vZGUgaW4gcmVzcG9uc2UgZXZl biB0aG91Z2ggaXQncyBzYXZlZAotICAgICAgICAgICAqIG9uIHNlcnZlci4g SW4gc3VjaCBjYXNlIGp1c3QgcmVsb2FkIHRoZSBjb2xsZWN0aW9uIHRvIGdl dCBuZXdseQotICAgICAgICAgICAqIGNyZWF0ZWQgbm9kZXMuCi0gICAgICAg ICAgICovCi0KLSAgICAgICAgICAgdmFyIGNoaWxkcmVuID0gdHJlZS5jaGls ZHJlbihpdGVtLCBmYWxzZSwgZmFsc2UpLAotICAgICAgICAgICAgb3Blbk5v ZGUgPSBmdW5jdGlvbihpdGVtLCBhbmltYXRpb24pewotICAgICAgICAgICAg ICB0cmVlLm9wZW4oaXRlbSwgewotICAgICAgICAgICAgICAgIHN1Y2Nlc3M6 IGZ1bmN0aW9uIChpdGVtLCBvcHRpb25zKXsKLSAgICAgICAgICAgICAgICAg IHNldFRpbWVvdXQoZnVuY3Rpb24oKSB7Ci0gICAgICAgICAgICAgICAgICAg IGNsb3NlUGFuZWwoKTsKLSAgICAgICAgICAgICAgICAgIH0sIDApOwotICAg ICAgICAgICAgICAgIH0sCi0gICAgICAgICAgICAgICAgZmFpbDogZnVuY3Rp b24gKGl0ZW0sIG9wdGlvbnMpewotICAgICAgICAgICAgICAgIH0sCi0gICAg ICAgICAgICAgICAgdW5hbmltYXRlZDogYW5pbWF0aW9uCi0gICAgICAgICAg ICAgIH0pOwotICAgICAgICAgICAgfTsKKyAgICAgICAgICAgIC8qCisgICAg ICAgICAgICAgKiBTb21ldGltZSB3ZSBkb24ndCBnZXQgbm9kZSBpbiByZXNw b25zZSBldmVuIHRob3VnaCBpdCdzIHNhdmVkCisgICAgICAgICAgICAgKiBv biBzZXJ2ZXIuIEluIHN1Y2ggY2FzZSBqdXN0IHJlbG9hZCB0aGUgY29sbGVj dGlvbiB0byBnZXQgbmV3bHkKKyAgICAgICAgICAgICAqIGNyZWF0ZWQgbm9k ZXMuCisgICAgICAgICAgICAgKi8KKworICAgICAgICAgICAgdmFyIGNoaWxk cmVuID0gdHJlZS5jaGlsZHJlbihpdGVtLCBmYWxzZSwgZmFsc2UpLAorICAg ICAgICAgICAgICAgIG9wZW5Ob2RlID0gZnVuY3Rpb24oaXRlbSwgYW5pbWF0 aW9uKXsKKyAgICAgICAgICAgICAgICAgIHRyZWUub3BlbihpdGVtLCB7Cisg ICAgICAgICAgICAgICAgICAgIHN1Y2Nlc3M6IGZ1bmN0aW9uIChpdGVtLCBv cHRpb25zKXsKKyAgICAgICAgICAgICAgICAgICAgICBzZXRUaW1lb3V0KGZ1 bmN0aW9uKCkge2Nsb3NlUGFuZWwoKTt9LCAwKTsKKyAgICAgICAgICAgICAg ICAgICAgfSwKKyAgICAgICAgICAgICAgICAgICAgZmFpbDogZnVuY3Rpb24g KGl0ZW0sIG9wdGlvbnMpeworICAgICAgICAgICAgICAgICAgICAgIHNldFRp bWVvdXQoZnVuY3Rpb24oKSB7Y2xvc2VQYW5lbCgpO30sIDApOworICAgICAg ICAgICAgICAgICAgICB9LAorICAgICAgICAgICAgICAgICAgICB1bmFuaW1h dGVkOiBhbmltYXRpb24KKyAgICAgICAgICAgICAgICAgIH0pOworICAgICAg ICAgICAgICAgIH07CiAKICAgICAgICAgICAgIGlmIChjaGlsZHJlbikgewog ICAgICAgICAgICAgICBfLmVhY2goY2hpbGRyZW4sIGZ1bmN0aW9uKGNoaWxk KSB7Ci0gICAgICAgICAgICAgICAgdmFyICRjaGlsZCA9ICQoY2hpbGQpOwot ICAgICAgICAgICAgICAgIHZhciBkYXRhID0gdHJlZS5pdGVtRGF0YSgkY2hp bGQpCi0gICAgICAgICAgICAgICAgICBpZiAoZGF0YS5fdHlwZSA9PSB0aGF0 LmNvbGxlY3Rpb25fdHlwZSl7Ci0gICAgICAgICAgICAgICAgICAgIC8vIFdl IGZvdW5kIGNvbGxlY3Rpb24gd2hpY2ggbmVlZCB0byByZWxvYWQuCi0gICAg ICAgICAgICAgICAgICAgIGlmICh0cmVlLndhc0xvYWQoJGNoaWxkKSkgewot ICAgICAgICAgICAgICAgICAgICAgIHRyZWUudW5sb2FkKCRjaGlsZCwgewot ICAgICAgICAgICAgICAgICAgICAgICAgc3VjY2VzczogZnVuY3Rpb24gKGl0 ZW0sIG9wdGlvbnMpewotICAgICAgICAgICAgICAgICAgICAgICAgICBvcGVu Tm9kZShpdGVtLCB0cnVlKTsKLSAgICAgICAgICAgICAgICAgICAgICAgIH0s Ci0gICAgICAgICAgICAgICAgICAgICAgICBmYWlsOiBmdW5jdGlvbiAoaXRl bSwgb3B0aW9ucyl7Ci0gICAgICAgICAgICAgICAgICAgICAgICB9LAotICAg ICAgICAgICAgICAgICAgICAgICAgdW5hbmltYXRlZDogdHJ1ZQotICAgICAg ICAgICAgICAgICAgICAgIH0pOwotICAgICAgICAgICAgICAgICAgICB9IGVs c2UgewotICAgICAgICAgICAgICAgICAgICAgIG9wZW5Ob2RlKCRjaGlsZCwg ZmFsc2UpOwotICAgICAgICAgICAgICAgICAgICB9CisgICAgICAgICAgICAg ICAgdmFyICRjaGlsZCA9ICQoY2hpbGQpLAorICAgICAgICAgICAgICAgICAg ICBkYXRhID0gdHJlZS5pdGVtRGF0YSgkY2hpbGQpOworICAgICAgICAgICAg ICAgIGlmIChkYXRhLl90eXBlID09IHRoYXQuY29sbGVjdGlvbl90eXBlKXsK KyAgICAgICAgICAgICAgICAgIC8vIFdlIGZvdW5kIGNvbGxlY3Rpb24gd2hp Y2ggbmVlZCB0byByZWxvYWQuCisgICAgICAgICAgICAgICAgICBpZiAodHJl ZS53YXNMb2FkKCRjaGlsZCkpIHsKKyAgICAgICAgICAgICAgICAgICAgdHJl ZS51bmxvYWQoJGNoaWxkLCB7CisgICAgICAgICAgICAgICAgICAgICAgc3Vj Y2VzczogZnVuY3Rpb24gKGl0ZW0sIG9wdGlvbnMpeworICAgICAgICAgICAg ICAgICAgICAgICAgb3Blbk5vZGUoaXRlbSwgdHJ1ZSk7CisgICAgICAgICAg ICAgICAgICAgICAgfSwKKyAgICAgICAgICAgICAgICAgICAgICBmYWlsOiBm dW5jdGlvbiAoaXRlbSwgb3B0aW9ucyl7CisgICAgICAgICAgICAgICAgICAg ICAgICBzZXRUaW1lb3V0KGZ1bmN0aW9uKCkge2Nsb3NlUGFuZWwoKTt9LCAw KTsKKyAgICAgICAgICAgICAgICAgICAgICB9LAorICAgICAgICAgICAgICAg ICAgICAgIHVuYW5pbWF0ZWQ6IHRydWUKKyAgICAgICAgICAgICAgICAgICAg fSk7CisgICAgICAgICAgICAgICAgICB9IGVsc2UgeworICAgICAgICAgICAg ICAgICAgICBvcGVuTm9kZSgkY2hpbGQsIGZhbHNlKTsKICAgICAgICAgICAg ICAgICAgIH0KKyAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgIH0p OworICAgICAgICAgICAgICByZXR1cm47CiAgICAgICAgICAgICB9CisgICAg ICAgICAgICBzZXRUaW1lb3V0KGZ1bmN0aW9uKCkge2Nsb3NlUGFuZWwoKTt9 LCAwKTsKICAgICAgICAgICB9Ci0gICAgICAgIH0sCisgICAgICAgIH0uYmlu ZChwYW5lbCksCiAgICAgICAgIGVkaXRJbk5ld1BhbmVsID0gZnVuY3Rpb24o KSB7CiAgICAgICAgICAgLy8gT3BlbiBlZGl0IGluIHNlcGFyYXRlIHBhbmVs CiAgICAgICAgICAgc2V0VGltZW91dChmdW5jdGlvbigpIHsKQEAgLTExMjMs MTQgKzExNDEsMTQgQEAgZnVuY3Rpb24oJCwgXywgUywgcGdBZG1pbiwgTWVu dSwgQmFja2JvbmUsIEFsZXJ0aWZ5LCBwZ0Jyb3dzZXIsIEJhY2tmb3JtKSB7 CiAgICAgICAgICAgICB9XSk7CiAgICAgICAgICAgfSwgMCk7CiAgICAgICAg IH0sCi0gICAgICAgIG9uQ2FuY2VsRnVuYyA9IGNsb3NlUGFuZWwuYmluZChw YW5lbCksCisgICAgICAgIG9uQ2FuY2VsRnVuYyA9IGNsb3NlUGFuZWwsCiAg ICAgICAgIG9uU2F2ZUZ1bmMgPSB1cGRhdGVUcmVlSXRlbS5iaW5kKHBhbmVs KSwKICAgICAgICAgb25FZGl0ID0gZWRpdEZ1bmMuYmluZChwYW5lbCk7CiAK ICAgICAgIGlmIChhY3Rpb24pIHsKICAgICAgICAgaWYgKGFjdGlvbiA9PSAn Y3JlYXRlJyl7Ci0gICAgICAgICAgb25DYW5jZWxGdW5jID0gY2xvc2VQYW5l bC5iaW5kKHBhbmVsKTsKLSAgICAgICAgICBvblNhdmVGdW5jID0gc2F2ZU5l d05vZGUuYmluZChwYW5lbCk7CisgICAgICAgICAgb25DYW5jZWxGdW5jID0g Y2xvc2VQYW5lbDsKKyAgICAgICAgICBvblNhdmVGdW5jID0gc2F2ZU5ld05v ZGU7CiAgICAgICAgIH0KICAgICAgICAgaWYgKGFjdGlvbiAhPSAncHJvcGVy dGllcycpIHsKICAgICAgICAgICAvLyBXZSBuZWVkIHRvIGtlZXAgdHJhY2sg ZWRpdC9jcmVhdGUgbW9kZSBmb3IgdGhpcyBwYW5lbC4K --001a1141f3a2c676d1053083c24f Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers --001a1141f3a2c676d1053083c24f--