-
-
Couldn't load subscription status.
- Fork 404
Open
Labels
readyReady for implementationReady for implementationtype: buguser reportedReported by a Mathesar userReported by a Mathesar userwork: db-layerRelated to SQL or PL/pgSQLRelated to SQL or PL/pgSQL
Milestone
Description
Description
Using the following table and constraints:
CREATE TABLE public.index_test (
id uuid NOT NULL DEFAULT gen_random_uuid(),
col_a text NOT NULL
);
-- Primary Key
ALTER TABLE public.index_test
ADD CONSTRAINT index_test_pkey PRIMARY KEY (id);
-- Index on col_a and id
CREATE INDEX ix_index_test_col_a_id ON public.index_test (col_a, id);
Mathesar does not detect this table as having a Primary key:
Removing the ix_index_test_col_a_id index fixes the problem.
Expected behavior
Mathesar correctly identifies the table's primary key.
To Reproduce
Load this SQL into a local Mathesar instance (docker exec -it mathesar_dev_db psql -U mathesar) and verify the behavior.
Metadata
Metadata
Assignees
Labels
readyReady for implementationReady for implementationtype: buguser reportedReported by a Mathesar userReported by a Mathesar userwork: db-layerRelated to SQL or PL/pgSQLRelated to SQL or PL/pgSQL