public inbox for [email protected]
help / color / mirror / Atom feedFrom: Dave Page <[email protected]>
To: Neel Patel <[email protected]>
Cc: Harshal Dhumal <[email protected]>
Cc: Akshay Joshi <[email protected]>
Cc: Murtuza Zabuawala <[email protected]>
Cc: pgadmin-hackers <[email protected]>
Subject: Re: PATCH: Fix the issue for saving query output as CSV
Date: Mon, 18 Jul 2016 11:32:01 +0100
Message-ID: <CA+OCxoyo7_bwGq5jCSaXfc+KzrBpt=sxSimrDL8Yhwd+VLx85Q@mail.gmail.com> (raw)
In-Reply-To: <CACCA4P24vFPJ27Bkeb3QGScacKgmZi5=dAcyx70BC7ay-Z5Dow@mail.gmail.com>
References: <CAKKotZSvCZ4JkK03rgGyG5h8QAeoQrcDfxsguj81YX4EgWAZbA@mail.gmail.com>
<CA+OCxowF2JdJ2=3-N9oE5K6t0Ywjsm00X+=5Xq5RcmJxH0v-Cw@mail.gmail.com>
<[email protected]>
<CA+OCxozBcaqNW_niBut3KV2C0LXMPFtZxPkk-r4VCwWemo99pg@mail.gmail.com>
<[email protected]>
<CA+OCxozJ3eejW+LN7KN5VzxzBNGGpwoO=qZ9VMFi_DTpF82crg@mail.gmail.com>
<[email protected]>
<CANxoLDdx_jY6hgFsSJvBVGxXN62q41m=oCrcqNodMqP3xwJ3xQ@mail.gmail.com>
<CAFiP3vw2WS=XzG_w6EpQYuA0Ww9xt2kLs3J-j2hFmTSpvBsWyQ@mail.gmail.com>
<CA+OCxozaRi4A_Exd7_NMGCdaJNDBav1TR4s59JwEwLjVCuiwsQ@mail.gmail.com>
<CAFiP3vw5bKcGiJ8gcSMV_LFiCQAr2A42UqeF39U2nUVWBuUt1g@mail.gmail.com>
<CAFiP3vwtwX9G58MUXsRkyHVvOVrJTBdOuyxGcrwBO_kDrBQF8g@mail.gmail.com>
<CA+OCxowO7Rt5FUv4vsv8uymdcVjiufUFPFa+_v+VPrgKvLdfjg@mail.gmail.com>
<CACCA4P0ZjhnFbVNPrsSLSm3bTcLkwkySBL2J=aZUq61Bkg9uYQ@mail.gmail.com>
<CA+OCxoxnm-8-fZ5ehFtNvjj87AyT1bk4-owC+aaGqqzAeBnmZw@mail.gmail.com>
<CA+OCxoxSJrwpMPH9guFG1+4D=VWfACwDTQ=MNCBOF4nZt2xrHg@mail.gmail.com>
<CACCA4P24vFPJ27Bkeb3QGScacKgmZi5=dAcyx70BC7ay-Z5Dow@mail.gmail.com>
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgadmin-hackers>
Perfect, thanks!
On Mon, Jul 18, 2016 at 11:24 AM, Neel Patel <[email protected]>
wrote:
> Yes. I am just testing with different OS. I will send it next 1-2 hour.
>
> Is it fine ?
>
> Thanks,
> Neel Patel
>
> On Mon, Jul 18, 2016 at 3:53 PM, Dave Page <[email protected]> wrote:
>
>> Any chance of getting that in the next couple of hours so I can get it
>> into beta 3?
>>
>> On Mon, Jul 18, 2016 at 11:18 AM, Dave Page <[email protected]> wrote:
>>
>>> Thanks!
>>>
>>> On Mon, Jul 18, 2016 at 10:42 AM, Neel Patel <
>>> [email protected]> wrote:
>>>
>>>> Hi Dave,
>>>>
>>>> Yes, it will break in runtime. If we need to support downloading at
>>>> server side then we need to change the runtime code.
>>>> I will send the patch for runtime to support server side download CSV
>>>> file.
>>>>
>>>> Thanks,
>>>> Neel Patel
>>>>
>>>> On Fri, Jul 15, 2016 at 3:05 PM, Dave Page <[email protected]> wrote:
>>>>
>>>>> Hi
>>>>>
>>>>> This seems to break downloads in the runtime. It works in Safari and
>>>>> Chrome, but in the runtime the suggested filename is
>>>>> "6980287?query=SELECT+*+FROM+pem.probe_column%0AORDER+BY+id%0AASC+&filename=probe_column.csv",
>>>>> and after changing that and hitting OK, the "Downloading file" dialogue is
>>>>> shown indefinitely.
>>>>>
>>>>> On Wed, Jul 13, 2016 at 1:16 PM, Harshal Dhumal <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> PFA rebased patch for RM1405
>>>>>>
>>>>>> --
>>>>>> *Harshal Dhumal*
>>>>>> *Software Engineer*
>>>>>>
>>>>>> EnterpriseDB India: http://www.enterprisedb.com
>>>>>> The Enterprise PostgreSQL Company
>>>>>>
>>>>>> On Wed, Jul 13, 2016 at 5:15 PM, Harshal Dhumal <
>>>>>> [email protected]> wrote:
>>>>>>
>>>>>>> Yes sure
>>>>>>>
>>>>>>> --
>>>>>>> *Harshal Dhumal*
>>>>>>> *Software Engineer*
>>>>>>>
>>>>>>> EnterpriseDB India: http://www.enterprisedb.com
>>>>>>> The Enterprise PostgreSQL Company
>>>>>>>
>>>>>>> On Wed, Jul 13, 2016 at 5:10 PM, Dave Page <[email protected]>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi
>>>>>>>>
>>>>>>>> Can you rebase this please?
>>>>>>>>
>>>>>>>> Thanks.
>>>>>>>>
>>>>>>>> On Mon, Jul 11, 2016 at 9:16 AM, Harshal Dhumal <
>>>>>>>> [email protected]> wrote:
>>>>>>>>
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> PFA patch for RM1405. Also to allow download in runtime we will
>>>>>>>>> still need patch
>>>>>>>>> <https://www.postgresql.org/message-id/CACCA4P3JOe40WYMGjhpSWYGR%3DWuvRbbp2gfDKLnU%2B1rXuW9Www%40mail...;
>>>>>>>>> sent by Neel.
>>>>>>>>>
>>>>>>>>> Changes: To download query result to CSV directly from server and
>>>>>>>>> not to use download attr. of anchor tag (<a>) as it's not support by all of
>>>>>>>>> major browsers (e.g. Safari).
>>>>>>>>> Also it's not feasible to load data in html to download if result
>>>>>>>>> set of query is very huge (in GBs).
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> *Harshal Dhumal*
>>>>>>>>> *Software Engineer*
>>>>>>>>>
>>>>>>>>> EnterpriseDB India: http://www.enterprisedb.com
>>>>>>>>> The Enterprise PostgreSQL Company
>>>>>>>>>
>>>>>>>>> On Wed, Jun 29, 2016 at 4:53 PM, Akshay Joshi <
>>>>>>>>> [email protected]> wrote:
>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Wed, Jun 29, 2016 at 3:52 PM, Murtuza Zabuawala <murtuza.
>>>>>>>>>> [email protected]> 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 <[email protected]>
>>>>>>>>>>> wrote:
>>>>>>>>>>> >
>>>>>>>>>>> > On Tue, Jun 28, 2016 at 10:33 AM, Murtuza Zabuawala
>>>>>>>>>>> > <[email protected]> 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 (
>>>>>>>>>>> [email protected])
>>>>>>>>>>> To make changes to your subscription:
>>>>>>>>>>> http://www.postgresql.org/mailpref/pgadmin-hackers
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> *Akshay Joshi*
>>>>>>>>>> *Principal Software Engineer *
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> *Phone: +91 20-3058-9517 <%2B91%2020-3058-9517>Mobile: +91
>>>>>>>>>> 976-788-8246*
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> 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
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> 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
>>
>
>
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
view thread (23+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected], [email protected], [email protected]
Subject: Re: PATCH: Fix the issue for saving query output as CSV
In-Reply-To: <CA+OCxoyo7_bwGq5jCSaXfc+KzrBpt=sxSimrDL8Yhwd+VLx85Q@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox