I have created an enterprise geodatabase with ArcGIS 10.5 in a PostgreSQL 9.5 database. And I set the PostGIS template to my database. So when I create a feature class in database, I can add this layer in QGIS and I can see the data. But when I add the data in QGIS layer that comes from database and save, it gives an error like this:
Could not commit changes to layer mypoints Errors:ERROR: 1 feature(s) not added. Provider Errors: PostGIS error while adding features: ERROR: column "shape" is of type geometry but expression is of type st_geometry LINE 1: ...sde"."mypoints"("shape","objectid","name") VALUES (st_geomfro... ^ HINT: You will need to rewrite or cast the expression.
My database keywords setted ad PG_GEOMETRY like this:
##PG_GEOMETRY GEOMETRY_STORAGE "PG_GEOMETRY" UI_TEXT "User Interface text description for POSTGIS geometry storage" END
How can I solve this problem?