| From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
|---|---|
| To: | Janek Sendrowski <janek12(at)web(dot)de> |
| Cc: | "pgsql-general(at)postgresql(dot)org >> PG-General Mailing List" <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: performant import of an array |
| Date: | 2013-08-23 21:23:36 |
| Message-ID: | CAFj8pRCFJ0hUk+MkfnnjrQGyCWNy1S1qKF_zJzUmbA-+AmE4iw@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Hello
import data to auxiliary table, and then use a ARRAY(subselect) or
array_agg function to transformation from table to array.
Regards
Pavel
2013/8/23 Janek Sendrowski <janek12(at)web(dot)de>
> Hi,
>
> I have an array and I want to import the data rowwise.
>
> Would it make sense to use a function which calls a prepared statement in
> a loop to import the data performant?
>
> Or can I somehow use the COPY FROM command?
>
> Janek Sendrowski
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Arjen Nienhuis | 2013-08-23 23:28:28 | Re: numeric to ipv6 inet |
| Previous Message | Janek Sendrowski | 2013-08-23 21:19:59 | performant import of an array |