Sample async scan on PostgreSQL database using Python & Psycopg.
- PostgreSQL 9.4 or higher
- PostgreSQL packages: contrib, plpython, plpython3
- Python 3.0 or higher
- Python packages: psycopg2
Debian packages install example command (except PostgreSQL installing):
- apt-get install postgresql-contrib-9.4 postgresql-plpython-9.4 postgresql-plpython3-9.4 python3.4 python3-psycopg2
- execute preparation.sql — creates test structure
- execute function.sql — creates function
- open tests.sql, manually execute queries (check user password) and compare execution time