Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bIDah-0002Sc-Ge for pgadmin-hackers@arkaria.postgresql.org; Wed, 29 Jun 2016 11:23:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bIDah-0007Bg-2O for pgadmin-hackers@arkaria.postgresql.org; Wed, 29 Jun 2016 11:23:35 +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 1bIDag-0007BX-CJ for pgadmin-hackers@postgresql.org; Wed, 29 Jun 2016 11:23:34 +0000 Received: from mail-ob0-x235.google.com ([2607:f8b0:4003:c01::235]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bIDad-0003uv-GQ for pgadmin-hackers@postgresql.org; Wed, 29 Jun 2016 11:23:33 +0000 Received: by mail-ob0-x235.google.com with SMTP id o10so8001962obp.2 for ; Wed, 29 Jun 2016 04:23:31 -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=l3MYF6mwaFowtICyF0RITBfTAYKEtHq+2DDcVp+wogE=; b=iIjdqntg5uQ2QkP/e20ic/1uPmbVKtbuAkeoIGCnwb6l69fApD7tjH+ctxyKSWyQww aYR08aeJLmAsnug39vVm6XYJYsF30d/AfZXKe0DKWYn7wp799PjBJFUFZJAbLQDfD6hO DjlkuKpDCGmkzEXjSdvnPu+JuZLChCpX4Pa968qk3cRu+zDLzf/84Iuz/FzuBfQB5+8V 1QbnH6gz1YM9mxk9g467FFp9zOQmwZTMIrci3RW/aFh0VhTB1iKARy7u8LlIOvK8HElF tyBty02OsyRSAXbX9geWVNEu10ahTmzXq+II6RHP4hpyKJqHA3ehoq1hssHR+y/QwRw8 Ul9g== 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=l3MYF6mwaFowtICyF0RITBfTAYKEtHq+2DDcVp+wogE=; b=adQ5s+HPPdG/BNYoVtT6KZh7c8It6t/toekdmkOQV/whZuOrtSqlP7Yt3HZcYOr6FQ lrsR6fwBlmteG1VX6140u8JqEm1MdOTFLHfAQhWXO6ikkIZIrz3ci+ALDHkZOS6J5+d3 qotX7UNL2DWIaxAWSmcSSi+JCJC55KaYQfJioUFlttsQ1y1JdaG4ZqMM90YqoeUFzXq6 t6yYwUMstM3Yg0B9pM8WyTZ1D3nGMHH75hzUHP7OnZYX8RyY98lX2YPlX3sjEUd0ujI8 o6lK+XxuWdUbDhh2EIAxLz4OpkH616th0x1Lm3gKNvoEjQ6IWLrBv2j1upusUWRpbHzT KUNg== X-Gm-Message-State: ALyK8tKx7xp/PebS0x3Vz+xltqRHFK99AjiA6wlTGInMtDjcr8vhocE1X9AxOzqLkc3kRvdKJXnc3apOIvxrODqz X-Received: by 10.157.24.50 with SMTP id b47mr4968826ote.101.1467199410949; Wed, 29 Jun 2016 04:23:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.74.196 with HTTP; Wed, 29 Jun 2016 04:23:30 -0700 (PDT) In-Reply-To: <671D8CC8-C1D8-4CC1-BC32-431C496C4C5C@enterprisedb.com> References: <70470862-26C1-4281-838E-F2C755E5C645@enterprisedb.com> <671D8CC8-C1D8-4CC1-BC32-431C496C4C5C@enterprisedb.com> From: Akshay Joshi Date: Wed, 29 Jun 2016 16:53:30 +0530 Message-ID: Subject: Re: PATCH: Fix the issue for saving query output as CSV To: Murtuza Zabuawala Cc: Dave Page , pgadmin-hackers Content-Type: multipart/alternative; boundary=001a113da6f2b47f00053668fbac 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 --001a113da6f2b47f00053668fbac Content-Type: text/plain; charset=UTF-8 On Wed, Jun 29, 2016 at 3:52 PM, Murtuza Zabuawala wrote: > Yes, It will not work in runtime as well but I think Neel is working for > fix in run time for this issue, We might able to fix it in run time but > issue persists in Safari unless they add support in browser itself. > > https://webkit.org/status/#feature-download-attribute > > > > On 29-Jun-2016, at 3:40 pm, Dave Page wrote: > > > > On Tue, Jun 28, 2016 at 10:33 AM, Murtuza Zabuawala > > wrote: > >> Yes Dave, I agree that downloading files has been supported in browsers > since long . > >> > >> But in general we send request & then receives files from web server > but in our case we are fetching our data from Backbone models & then > converting it to CSV format for downloading as a file at client side in > browser itself. > > > > If Safari doesn't support client-side saving of files, then I have to > > wonder if our runtime will either - both are webkit based. > > > > So I guess the next question to ask is; why don't we just generate the > > CSV on the server side? > > > > @Akshay, > Can you please suggest on above? > As we already have complete data in backgrid's full collection, so I have used it instead of fetching it again. > > > -- > > 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 > -- *Akshay Joshi* *Principal Software Engineer * *Phone: +91 20-3058-9517Mobile: +91 976-788-8246* --001a113da6f2b47f00053668fbac Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Wed, Jun 29, 2016 at 3:52 PM, Murtuza Zab= uawala <murtuza.zabu= awala@enterprisedb.com> wrote:
Yes, It = will not work in runtime as well but I think Neel is working for fix in run= time for this issue, We might able to fix it in run time but issue persist= s in Safari unless they add support in browser itself.

https://webkit.org/status/#feature-download-att= ribute


> On 29-Jun-2016, at 3:40 pm, Dave Page <dpage@pgadmin.org> wrote:
>
> On Tue, Jun 28, 2016 at 10:33 AM, Murtuza Zabuawala
> <murtuza.zabu= awala@enterprisedb.com> wrote:
>> Yes Dave, I agree that downloading files has been supported in bro= wsers since long .
>>
>> But in general we send request & then receives files from web = server but in our case we are fetching our data from Backbone models & = then converting it to CSV format for downloading as a file at client side i= n browser itself.
>
> If Safari doesn't support client-side saving of files, then I have= to
> wonder if our runtime will either - both are webkit based.
>
> So I guess the next question to ask is; why don't we just generate= the
> CSV on the server side?
>

@Akshay,
Can you please suggest on above?

=C2=A0= =C2=A0As we already have complete data in backgrid's full collection, so I have used it in= stead of fetching it again. =C2=A0 =C2=A0

> --
> 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=



--
=
Akshay Joshi
Principal Software Enginee= r=C2=A0

=