markdrago / pgsanity

Check syntax of postgresql sql files
MIT License
316 stars 28 forks source link

Add progress bar for long running syntax checks #3

Closed ghost closed 8 years ago

ghost commented 12 years ago

I'm currently syntax checking a 600mb SQL file and it'd be nice to know how far through pgsanity is.

Bonus: it's currently maxing out a single core of my VM and using 1.3GB of RAM :D

markdrago commented 12 years ago

Interesting. A few things to note:

Adam, are you interested in working on any of this? Let me know and I can help out. If not I'll probably take a crack at some of this at some point.

markdrago commented 12 years ago

I was incorrect in blaming ecpg for the slowness. It was in pgsanity itself and a bunch of performance improvements were made in 0.2.5. With that said, a progress bar is a neat idea and may still come in handy for very large files. I'll leave this issue open to document the progress bar idea.

ghost commented 12 years ago

Midnight inspiration: you may be able to do this with a program called pv, or something similar.