I have been trying to create a table column of type "citext" in postgres.
db=# CREATE TABLE users (
id serial PRIMARY KEY,
name citext NOT NULL,
email citext NOT NULL
);
ERROR: type "citext" does not exist
LINE 3: name citext NOT NULL,
But getting this error. On surfing through internet, it was said to
CREATE EXTENSION citext;
I verified the creation using command,
SELECT * FROM pg_extension WHERE extname = 'citext';
It was created.
But even after this I keep on getting the error,
ERROR: type "citext" does not exist
Does anyone knows how to resolve this?