From: | Erik Serrano <eserranos(at)gmail(dot)com> |
---|---|
To: | Ron Johnson <ronljohnsonjr(at)gmail(dot)com> |
Cc: | Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Export Query Output to incremental csv file |
Date: | 2024-08-08 15:28:39 |
Message-ID: | CA+dvXXtYKCy1+r8hkjw=NmbwdcC0Z0vCmGLRSfOApXesUKp7vQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Dear Sir,
This was exactly what I needed, the idea was to do the incremental export
in csv... of course I looked for some additional formats like "... stdout
with (format csv)" and it worked perfectly.
Thank you very much Ron for your help...
A hug
*Erik R. Serrano Saavedra*
*Ingeniero de Sistemas Informáticos*
* Data Base Administrator*
* eserranos(at)gmail(dot)com <eserranos(at)gmail(dot)com>*
El jue, 8 ago 2024 a las 10:44, Ron Johnson (<ronljohnsonjr(at)gmail(dot)com>)
escribió:
> On Thu, Aug 8, 2024 at 10:26 AM Erik Serrano <eserranos(at)gmail(dot)com> wrote:
>
>> Hi guys,
>> I would like to ask a question about exporting a query output to a csv
>> file but with the particularity that it is incremental (that is, the same
>> file grows in size) since I need to do the query multiple times and I don't
>> want to fill up with csv files... but rather just one that always grows, as
>> if it were a log.
>>
>> I will add the query to a shell and schedule it using a crontab in Linux
>> Centos.
>>
>
> COPY ... TO STDOUT, and then append that to the CSV file using ">>".
>
> (Unless I misinterpret what you mean.)
>
> --
> Death to America, and butter sauce.
> Iraq lobster!
>
From | Date | Subject | |
---|---|---|---|
Next Message | Holger Jakobs | 2024-08-09 07:38:16 | Necessary lib on Ubuntu for 17beta3 |
Previous Message | Ron Johnson | 2024-08-08 14:44:04 | Re: Export Query Output to incremental csv file |