Search Postgresql Archives

Re: Generating synthetic keys on copy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Right.  Instead, specify a column list to the COPY (you are using a PG
> version new enough to have column lists in COPY, no?) and it will
> execute the default expression for the column(s) not coming from the data
> file.

Thanks. (Feeling dumb here.) I am using 8.1, however I haven't read the docs
for COPY in a few years, and didn't realize I could specify a column list.
RTFM, duh.


-- 
Scott Ribe
scott_ribe@xxxxxxxxxxxxxxx
http://www.killerbytes.com/
(303) 722-0567 voice




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux