Demonstration of receiving samples of a large number of records. ##Install & Run The script creates a temporary table and filled it can be found in a folder: sql/init.sql Python dependencies: pip install psycopg2 Do not forget to update connection string in bulk_select.py Enjoy!