PostgreSQL error: column does not exist

ERROR:  column "createdat" does not exist
LINE 1: SELECT createdAt FROM users;
               ^
HINT:  Perhaps you meant to reference the column "users.createdAt".

PostgreSQL couldn't resolve a column name — and very often the HINT is already telling you why. Look at the sample: the query says createdAt, the error says "createdat", the hint offers "users.createdAt". That's the lowercase-folding rule at work.

What this error means

Two SQL rules produce nearly all of these errors:

Common causes

How to diagnose it

\d users   -- nomi e case ESATTI delle colonne

Compare character by character, including case. If the query is generated by an ORM, log the actual SQL — the quoting the ORM emits is the whole story.

How to fix it

🔍 Same rules, table edition: relation does not exist — search_path and quoted identifiers.