a.m.
> To: gdal-dev@lists.osgeo.org
> Cc: Jeremy Palmer
> Subject: Re: [gdal-dev] Copying FIDs into existing PG schema
>
> > Is there a specific reason for the OGRPGTableLayer::BuildCopyFields (and
> > CreateFeatureViaCopy) checking that the field must exist in the layer
>
> Is there a specific reason for the OGRPGTableLayer::BuildCopyFields (and
> CreateFeatureViaCopy) checking that the field must exist in the layer
> FieldDefn before adding it to the copy field list? Or is this a bug?
Jeremy,
I've created http://trac.osgeo.org/gdal/ticket/4495 to capture the issu
Hi
When using the config PG_USE_COPY option the copy command does not include the
destination FID in the field list. In my case the destination FID field is a
primary key with a not null constraint, so the copy fails.
e.g.
ogr2ogr --config PG_USE_COPY TRUE -append -preserve_fid -f "PostgreSQL"