ERROR: must be owner of language plpgsql
问题 I'm using PostgreSQL v9.0.1 with Rails (and it's deps) @ v2.3.8 , owing to the use of the fulltext capability of postgres, I have a table which is defined as: CREATE TABLE affiliate_products ( id integer NOT NULL, name character varying(255), model character varying(255), description text, price numeric(9,2), created_at timestamp without time zone, updated_at timestamp without time zone, textsearch_vector tsvector, ); Note the last line, this ensures that active record isn't able to process