Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DB Manager: import layer into Postgis fails with "Error 5 Creation of fields failed." #26246

Closed
qgib opened this issue Mar 6, 2018 · 6 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! DB Manager Relating to the DB Manager core plugin

Comments

@qgib
Copy link
Contributor

qgib commented Mar 6, 2018

Author Name: Rui Pedro Henriques (Rui Pedro Henriques)
Original Redmine Issue: 18356
Affected QGIS version: 3.4.4
Redmine category:db_manager


When trying to import a layer to Postgis I get "Error 5 Creation of fields failed."
The table and fields id and geom are created on the DB.

It was tested on QGIS 2.18.15/win 10 and QGIS 2.18.0 on MacOS.


@qgib
Copy link
Contributor Author

qgib commented Mar 6, 2018

Author Name: Giovanni Manghi (@gioman)


Confirmed also on Linux. (Ricardo?) can you test also QGIS 3? Thanks.


  • operating_system was changed from QGIS 2.18.15/win 10 and QGIS 2.18.0 on MacOS to
  • subject was changed from DB Manager - import layer into Postgis to DB Manager: import layer into Postgis fails with "Error 5 Creation of fields failed."
  • version was changed from 2.18.15 to 2.18.16

@qgib
Copy link
Contributor Author

qgib commented Jan 20, 2019

Author Name: Jürgen Fischer (@jef-n)


Please test with QGIS 3.4 - QGIS 2.18 reached it's end of life.


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Feb 23, 2019

Author Name: matteo ghetta (@ghtmtt)


Confirmed also on 3.4 but only with the attached data and not with other data. So I suspect something is weird on data side.

@qgib
Copy link
Contributor Author

qgib commented Feb 23, 2019

Author Name: Giovanni Manghi (@gioman)


matteo ghetta wrote:

Confirmed also on 3.4 but only with the attached data and not with other data. So I suspect something is weird on data side.

please bump affected version if necessary.


  • status_id was changed from Feedback to Open
  • version was changed from 2.18.16 to 3.4.4

@qgib
Copy link
Contributor Author

qgib commented Feb 23, 2019

Author Name: Federico Gianoli (Federico Gianoli)


The error, with this dataset, persist on QGIS 3.4.4

Error 4
Creation of fields failed


  • 14409 was configured as bug.JPG

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! DB Manager Relating to the DB Manager core plugin labels May 25, 2019
@gioman
Copy link
Contributor

gioman commented Dec 28, 2020

The error message is clearer now

ERROR: column name "xmin" conflicts with a system column name

as "xmin" is a reserved column name in pgsql https://www.postgresql.org/docs/12/ddl-system-columns.html

@gioman gioman closed this as completed Dec 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! DB Manager Relating to the DB Manager core plugin
Projects
None yet
Development

No branches or pull requests

2 participants