title: psycopg2.errors.UndefinedColumn: column excluded.number does not exist
body: <p>I have two tables in two different schemas on one database:</p>
  <pre><code>CREATE TABLE IF NOT EXISTS target_redshift.dim_collect_projects (
              project_id BIGINT NOT NULL UNIQUE,
              project_number BIGINT,
              project_name VARCHAR(300) NOT NULL,
              connect_project_id BIGINT NOT NULL,
              project_desc VARCHAR(5000) NOT NULL,
              project_type VARCHAR(50) NOT NULL,
              project_status VARCHAR(100),
              project_path VARCHAR(32768),
              language_code VARCHAR(10),
              country_code VARCHAR(10),
              timezone VARCHAR(10),
              project_created_at TIMESTAMP WITHOUT TIME ZONE,
              project_modified_at TIMESTAMP WITHOUT TIME ZONE,
              date_created TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT NOW(),
              date_updated TIMESTAMP WITHOUT TIME ZONE NOT NULL DEFAULT NOW()
          );
  
  CREATE TABLE IF NOT EXISTS source_redshift.dim_collect_projects (
              id BIGINT NOT NULL UNIQUE,
              number BIGINT,
              name VARCHAR(300) NOT NULL,
              connect_project_id BIGINT NOT NULL,
              description VARCHAR(5000) NOT NULL,
              type VARCHAR(50) NOT NULL,
              status VARCHAR(100),
              path VARCHAR(32768),
              language VARCHAR(10),
              country VARCHAR(10),
              timezone VARCHAR(10),
              created TIMESTAMP WITHOUT TIME ZONE NULL DEFAULT NOW(),
              modified TIMESTAMP WITHOUT TIME ZONE NULL DEFAULT NOW()
          );
  </code></pre>
  <p>I need to copy data from the second table to the first.</p>
  <p>Do it so:</p>
  <pre><code>INSERT INTO target_redshift.dim_collect_projects AS t
          SELECT id, number, name, connect_project_id, description,
          type, status, path, language, country, timezone, created,
          modified
          FROM source_redshift.dim_collect_projects
          ON CONFLICT (project_id)
          DO UPDATE SET
          (t.project_number, t.project_name, t.connect_project_id, t.project_desc,
          t.project_type, t.project_status, t.project_path, t.language_code,
          t.country_code, t.timezone, t.project_created_at, t.project_modified_at,
          t.date_created, t.date_updated) = (EXCLUDED.number, EXCLUDED.name, EXCLUDED.connect_project_id,
           EXCLUDED.description, EXCLUDED.type, EXCLUDED.status,
           EXCLUDED.path, EXCLUDED.language, EXCLUDED.country,
           EXCLUDED.timezone, EXCLUDED.created, EXCLUDED.modified, t.date_created, NOW())
  </code></pre>
  <p>And AirFlow send an error:</p>
  <pre><code>psycopg2.errors.UndefinedColumn: column excluded.number does not exist
  LINE 12:         t.date_created, t.date_updated) = (EXCLUDED.number, ...
  </code></pre>