ora2pg icon indicating copy to clipboard operation
ora2pg copied to clipboard

Idea: Adding progress markers to the import

Open smil2k opened this issue 4 years ago • 6 comments

During importing large datasets it would be good to see where is the import heading.

Ora2pg could emit \echo commands before each COPY/INSERT. Emitting progress. Eg.:

Importing TBL_WHATEVER [10001/10040402] COPY 10000 Importing TBL_WHATEVER [20000/10040402] COPY 10000

smil2k avatar Jun 04 '20 17:06 smil2k

I do not understand, you have the progress bar that gives this information, no?

darold avatar Jun 04 '20 20:06 darold

In case of OUTPUT, then the progress marker is shown while exporting.

But in case of importing all I see is "COPY 10000"

No way of knowing whether i can go for a tea ;-)

smil2k avatar Jun 05 '20 13:06 smil2k

I guess that you have first exported the data to file and importing them using psql. If you use direct import you will benefit from the progress bar :-)

darold avatar Jun 05 '20 15:06 darold

Sure:-) I'm using these exports as reference also. Others could install it for their machines.

Anyhow just an idea.

smil2k avatar Jun 05 '20 15:06 smil2k

Would you accept pull request for this?

smil2k avatar Jun 13 '20 21:06 smil2k

yes

darold avatar Jun 14 '20 04:06 darold