Closed rafaelsagastume closed 4 years ago
@rafaelsagastume did you check my comment in issue #61 ? pgquarrel needs to preserve columns order by name because it use it to compare columns. There should be a mechanism to order PQLAttribute by attnum or name then it is easy to print columns using attnum order.
@rafaelsagastume did you check my comment in issue #61 ? pgquarrel needs to preserve columns order by name because it use it to compare columns. There should be a mechanism to order PQLAttribute by attnum or name then it is easy to print columns using attnum order.
@eulerto , Now I realize, what I understand is to do the sorting after processing all the comparisons a moment before generating the sql script, I don't know if I get the correct message.
Good afternoon, Euler @eulerto
A pleasure to greet you again, a pull request has been created that solves the order of the columns of a source table when it will be created in target table, the columns are sorted by pg_attribute with the attnum field, solve issue #61.
source table
target table
As I always hope you like the solution, I am open to any feedback