I am using PgAdmin 4 with PostgreSQL 12. Below is a simple tabledefinition vocabulary and a view vocabulary_input. When I use the SELECT - statement from the vocabulary_input in the Query-tool screen, I can update and add rows. However, when I choose "View / Edit data -- all rows" from vocabulary_input the view is locked. Why is that?
CREATE TABLE public.vocabulary
(
entry text COLLATE pg_catalog."default" NOT NULL,
description text COLLATE pg_catalog."default",
reference text COLLATE pg_catalog."default" NOT NULL,
CONSTRAINT vocabulary_pkey PRIMARY KEY (entry, reference)
);
CREATE OR REPLACE VIEW public.vocabulary_input
AS
SELECT vocabulary.entry,
vocabulary.description,
vocabulary.reference
FROM vocabulary
ORDER BY vocabulary.entry, vocabulary.reference;