Skip to content

Bad table attributes count when parsing #161

@Fabiencdp

Description

@Fabiencdp

Got an error after adding then removing a column multiple times in the destination table:

    NOTICE: BULK LOAD START
    ,ERROR: copy failed: ERROR:  function return row and target table row do not match
    DETAIL:  Returned row contains 24 attribute(s), but target table expects 27.

The table as 24 attributes.
Seems that the value "27" come from the "ordinal_position" of "information_schema.columns" wich look like a autoincrement value. so adding/deleting columns could break the count of attributes.

select ordinal_position 
from information_schema.columns
where table_name = 'table_name' and column_name = 'column_name';

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions