Hello Paco,
I get some differences:
Two DROPS at the beginning
The way and place that terminoID_unique is restricted
We have more index created than you posted
This is the export of our jer_dd table:
`-- Adminer 4.8.1 PostgreSQL 17.0 (Ubuntu 17.0-1.pgdg22.04+1) dump
DROP TABLE IF EXISTS "jer_dd";
DROP SEQUENCE IF EXISTS jer_dd_id_seq;
CREATE SEQUENCE jer_dd_id_seq INCREMENT 1 MINVALUE 0 MAXVALUE 9223372036854775807 CACHE 1;
CREATE TABLE "public"."jer_dd" (
"id" integer DEFAULT nextval('jer_dd_id_seq') NOT NULL,
"terminoID" character varying(32),
"parent" character varying(32),
"modelo" character varying(8),
"esmodelo" sino,
"esdescriptor" sino,
"visible" sino,
"norden" numeric(4,0),
"tld" character varying(32),
"traducible" sino,
"relaciones" text,
"propiedades" text,
"properties" jsonb,
"term" jsonb,
"model" text,
CONSTRAINT "jer_dd_id" PRIMARY KEY ("id"),
CONSTRAINT "terminoID_unique" UNIQUE ("terminoID")
) WITH (oids = false);
CREATE INDEX "jer_dd_esdescriptor" ON "public"."jer_dd" USING btree ("esdescriptor");
CREATE INDEX "jer_dd_esmodelo" ON "public"."jer_dd" USING btree ("esmodelo");
CREATE INDEX "jer_dd_modelo" ON "public"."jer_dd" USING btree ("modelo");
CREATE INDEX "jer_dd_norden" ON "public"."jer_dd" USING btree ("norden");
CREATE INDEX "jer_dd_parent" ON "public"."jer_dd" USING btree ("parent");
CREATE INDEX "jer_dd_parent_esdescriptor" ON "public"."jer_dd" USING btree ("parent", "esdescriptor");
CREATE INDEX "jer_dd_parent_esdescriptor_esmodelo" ON "public"."jer_dd" USING btree ("parent", "esdescriptor", "esmodelo");
CREATE INDEX "jer_dd_parent_esdescriptor_norden" ON "public"."jer_dd" USING btree ("parent", "esdescriptor", "norden");
CREATE INDEX "jer_dd_properties" ON "public"."jer_dd" USING btree ("properties");
CREATE INDEX "jer_dd_propiedades" ON "public"."jer_dd" USING btree ("propiedades");
CREATE INDEX "jer_dd_relaciones" ON "public"."jer_dd" USING btree ("relaciones");
CREATE INDEX "jer_dd_term" ON "public"."jer_dd" USING btree ("term");
CREATE INDEX "jer_dd_terminoID_norden" ON "public"."jer_dd" USING btree ("terminoID", "norden");
CREATE INDEX "jer_dd_terminoid" ON "public"."jer_dd" USING btree ("terminoID");
CREATE INDEX "jer_dd_tld" ON "public"."jer_dd" USING btree ("tld");
CREATE INDEX "jer_dd_traducible" ON "public"."jer_dd" USING btree ("traducible");
CREATE INDEX "jer_dd_usableindex" ON "public"."jer_dd" USING btree ("tld");
CREATE INDEX "jer_dd_visible" ON "public"."jer_dd" USING btree ("visible");
COMMENT ON TABLE "public"."jer_dd" IS 'Model, a typology of the tipo';
INSERT INTO "jer_dd" ("id", "terminoID", "parent", "modelo", "esmodelo", "esdescriptor", "visible", "norden", "tld", "traducible", "relaciones", "propiedades", "properties", "term", "model") VALUES
......
......
......
`
Thank you