importccl: IMPORT PGDUMP could fail when the targeted columns are ordered differently than when they are created #51159
Labels
A-disaster-recovery
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
When running an
IMPORT
from aPGDUMP
file, it seems like it expects the ordering of the targeted columns to match the declaration of the columns. In particular, it also requires all columns to be targeted.To illustrate this, let's consider the following pgdump file called myfile:
Take an example of the following command:
It gives an error
row 1: cannot parse "A" as int
when we expect it to return the tableTake another example independent of the example above, but still using "myfile":
This gives error
expected 3 values, got 2 ["A", "1"]
, when we expect the following:This will therefore cause problems when we perform import on a table from PGDUMP file when there's non-targeted columns with default expressions.
The text was updated successfully, but these errors were encountered: