I have a table which I query on the varchar column. It can be one of the very few values possible (it's a simple java enum).
The SQL:
SELECT *
FROM activation
WHERE registration = '1312313'
AND status = 'WORKING';
Here I run EXPLAIN ANALYZE EXECUTE https://explain.depesz.com/s/Whuq, as it seems the problem is in the filtering by status. There is an index on the registration column.
Would it be reasonable to add an index on the status column or it's overkill here? If yes, how could I optimize the given query?