Closed simonpane closed 1 year ago
Note that simply grepping for ^Table
is not always sufficient as the error finding is sometimes related to a different object type such as a view.
Pull Request #1628 simply adds a searchable keyword via a one-line change.
Closing as this enhancement has been merged.
Small Enhancement Suggestion:
When running using the
--type TEST
option, the resulting output can be long when there are a large number of tables to compare. Consequently, the output is usually written to a log file -- or as redirection to a file from STDOUT.Searching through a long log file of output and finding all reported differences between the Oracle source database and the PostgreSQL target database can be a time consuming, manual effort. Usually involving searching for the "[ERRORS \<object type> COUNT]" sections and then manually capturing the subsequent lines.
An enhancement to make processing of differences more efficient would be to simply prefix the difference message with some prefix text. Such as the word
FINDING:
.Such a change is as simple as changing one line in the
Ora2Pg.pm
file:To something like:
Then the output is more usable as just the findings (or "differences") can be easily extracted from the log file with a simple command such as:
Example usage: