I have a simple table and some sample data
create table test_index (
id serial primary key,
name char(255)
);
insert into test_index (name) values ('tom');
insert into test_index (name) values ('john');
insert into test_index (name) values ('ken');
After created the table and data, I created an index for name column
CREATE INDEX idx_test_index_shop_name ON test_index(name);
But when I do the simple query on name column
select * from test_index where name = 'tom';
Its not using the index, just scan through the whole table

It seems a simple thing, but I can't figure out why its not working, does anyone know what is the cause of it?
Update 1
I see the answer suggest this is small data hence it doesn't use index, so I can understand why its not using it here.
But I have the similar setup with the a char(255) column and added index of that column, but the table have 16 millions rows, and it also didn't use the index created, anyone know why?
Update 2
Here is the actual table with index but not using it when querying the table
Here is the verbose output

