| From: | Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at> |
|---|---|
| To: | pavlo(dot)golub(at)gmail(dot)com, pgsql-docs(at)lists(dot)postgresql(dot)org |
| Subject: | Re: COPY manual is ambiguous about column list |
| Date: | 2019-11-28 09:47:10 |
| Message-ID: | 4f3e2f301646d94ad33558e21fc77d5bf1ea1cdd.camel@cybertec.at |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-docs |
On Wed, 2019-11-27 at 17:54 +0000, PG Doc comments form wrote:
> "If a list of columns is specified, COPY will only copy the data in the
> specified columns to or from the file. If there are any columns in the table
> that are not in the column list, COPY FROM will insert the default values
> for those columns."
>
> I clearly see "to or from" file here. But if one tries to COPY FROM filename
> with more columns than list specified, the process fails:
I think you misunderstood the documentation.
Nowhere in that sentence is the documentation talking about columns in
the file, only columns in the table.
But if you got it wrong, maybe a clarification would be a good idea.
Yours,
Laurenz Albe
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Pavlo Golub | 2019-11-28 13:53:03 | Re: COPY manual is ambiguous about column list |
| Previous Message | PG Doc comments form | 2019-11-27 17:54:53 | COPY manual is ambiguous about column list |