From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
---|---|
To: | Marco Lechner <mlechner(at)bfs(dot)de>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Download file from COPY ... TO with pgadmin |
Date: | 2023-01-31 16:30:59 |
Message-ID: | 007fdd46-89a2-a40f-1e79-803c9d7c71b9@aklaver.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 1/31/23 05:02, Marco Lechner wrote:
> Hi,
>
> Using COPY …TO it is possible to store e.g. the “value” of a bytea cell
> in a directory on the server. E.g. by this:
>
> COPY (SELECT content FROM d_doc WHERE id = 'x123456') TO
> CONCAT('/tmp/mydoc.pdf’) (FORMAT binary);
>
> As we do not have access to the postgresql fileserver (ssh, …), but can
> SELECT the value of the bytea cell, is It possible to download the bytea
> directly into a file on a client computer when using pgadmin? Is there a
> solution with the COPY … TO command, any pgadmin specific feature or any
> other simple solution?
Read the docs:
https://www.pgadmin.org/docs/pgadmin4/6.19/import_export_data.html
>
> Regards
>
> Marco
>
> i.A. Dr. Marco Lechner
>
> Leiter Fachgebiet RN 1 │ Head RN 1
>
> --
--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Dimitrios Apostolou | 2023-01-31 16:32:10 | Re: SELECT * FROM huge_table LIMIT 10; Why does it take more than 10 min to complete, with cold caches |
Previous Message | Dirschel, Steve | 2023-01-31 16:29:18 | RE: [EXT] DBeaver session populating pg_stat_activity.backend_xmin |