You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't seem to start dbsync , initialised from the database when my table has a btree index on the id column.
CREATETABLEmy_polygon_table (
id INT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
comment text,
datedate,
recorded_by text,
validated boolean,
validated_by text,
geom geometry(Polygon,4326)
);
CREATEINDEXIF NOT EXISTS my_polygon_table_geom_gist
ON my_polygon_table USING gist (geom);
CREATEINDEXIF NOT EXISTS my_polygon_table_id_btree
ON my_polygon_table USING btree (id);
I get this error in dbsync :
Error: postgres cmd error: ERROR: column "id" specified more than once
|
|
| SQL:
| CREATE TABLE "z_for_mergin_use_only_db_sync"."my_polygon_table" ("id" integer NOT NULL, "id" integer NOT NULL, "comment" text, "date" date, "recorded_by" text, "validated" boolean, "validated_by" text, "geom" geometry(Polygon,4326), PRIMARY KEY ("id"));
However if I do the same without creating an index it works fine.
The text was updated successfully, but these errors were encountered:
Hi @geographit2 thanks for the bug report that's indeed looks bad to not be able to use btree, I'll give it a try on my end with the SQL you provided, thanks you
I can't seem to start dbsync , initialised from the database when my table has a btree index on the id column.
I get this error in dbsync :
However if I do the same without creating an index it works fine.
The text was updated successfully, but these errors were encountered: