CREATE TABLE array_test (
id serial primary key,
data text[]
);
INSERT INTO array_test (data) VALUES
('{"one", "two"}');
-- Now I need to insert a second member of the array. My try would be the following, but the code only redefines the second member:
UPDATE array_test SET data[2] = 'three'
WHERE id = 1;