Error code

PostgreSQL 42703

POSTGRESQL42703
Database Error Code· An error code returned by a database server such as PostgreSQL or MySQL.

What it means

undefined_column — the column does not exist in this table.

How to fix it

  1. Check the exact column name with \d <table> in psql.
  2. Verify that any recent ALTER TABLE ... DROP COLUMN migration has not removed the column.
  3. Update the query to use the correct column name or add the column if it is missing.

Not affiliated with PostgreSQL. Answer summarized from the manufacturer's manual linked above; consult that source for the authoritative procedure.