├── README.md ├── clustering └── test_dbscan_kmeans.sql ├── external_storage_testing ├── 00_create_tables.sql ├── 01_pip_test_standard.sql ├── 02_pip_test_external.sql ├── 03_parallel_sql_processing.py ├── 03_the_query.sql ├── README.md ├── xx-code-scraps.sh └── xx_check_tables.sql ├── hex-grid ├── add-hex-grid-ids-to-points.py ├── create-hex-grid-function-width.sql ├── create-hex-grid-function.sql ├── create-hex-grid-using-width.py ├── create_random_mb_points.sql ├── merge-points-to-hex-grid.py ├── readme.md ├── sample-hex-grid-usage-au.sql ├── sample-hex-grid-usage-us.sql ├── sample-images │ ├── au-hex-grid.png │ ├── syd-hex-grid.png │ └── us-hex-grid.png └── xx-testing.sql ├── osm └── optimise_loaded_tables.sql ├── parallel-pgrouting ├── create_parallel_processing_function.sql ├── pgrouting-create-travel-zone-routes-function.sql ├── prep-nsw-bts-data-travel-zones.sql └── readme.md ├── parallel-processing ├── 01_load_boundaries.bat ├── 01_load_boundaries.sh ├── 02_create_random_points.sql ├── functions │ ├── create_parallel_processing_function.sql │ ├── create_parallel_processing_function_pg_94.sql │ └── create_random_points_in_polygon_function.sql ├── python-test │ ├── create_partitioned_table │ │ ├── create_table.sql │ │ ├── create_table_partitions.py │ │ ├── create_table_partitions.sql │ │ ├── get_partition_ranges.sql │ │ └── insert_into_table.sql │ ├── create_table.sql │ ├── parallel_sql_processing_test.py │ ├── readme.md │ ├── the_query.sql │ └── xx-test-results.sql └── readme.md ├── partitioning ├── create_table_and_insert_data.py ├── create_table_statement.sql └── insert_statement.sql └── pg-exporter ├── __init__.py ├── arguments.py ├── pg2xls.py └── pg_export.py /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/README.md -------------------------------------------------------------------------------- /clustering/test_dbscan_kmeans.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/clustering/test_dbscan_kmeans.sql -------------------------------------------------------------------------------- /external_storage_testing/00_create_tables.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/external_storage_testing/00_create_tables.sql -------------------------------------------------------------------------------- /external_storage_testing/01_pip_test_standard.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/external_storage_testing/01_pip_test_standard.sql -------------------------------------------------------------------------------- /external_storage_testing/02_pip_test_external.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/external_storage_testing/02_pip_test_external.sql -------------------------------------------------------------------------------- /external_storage_testing/03_parallel_sql_processing.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/external_storage_testing/03_parallel_sql_processing.py -------------------------------------------------------------------------------- /external_storage_testing/03_the_query.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/external_storage_testing/03_the_query.sql -------------------------------------------------------------------------------- /external_storage_testing/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/external_storage_testing/README.md -------------------------------------------------------------------------------- /external_storage_testing/xx-code-scraps.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/external_storage_testing/xx-code-scraps.sh -------------------------------------------------------------------------------- /external_storage_testing/xx_check_tables.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/external_storage_testing/xx_check_tables.sql -------------------------------------------------------------------------------- /hex-grid/add-hex-grid-ids-to-points.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/hex-grid/add-hex-grid-ids-to-points.py -------------------------------------------------------------------------------- /hex-grid/create-hex-grid-function-width.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/hex-grid/create-hex-grid-function-width.sql -------------------------------------------------------------------------------- /hex-grid/create-hex-grid-function.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/hex-grid/create-hex-grid-function.sql -------------------------------------------------------------------------------- /hex-grid/create-hex-grid-using-width.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/hex-grid/create-hex-grid-using-width.py -------------------------------------------------------------------------------- /hex-grid/create_random_mb_points.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/hex-grid/create_random_mb_points.sql -------------------------------------------------------------------------------- /hex-grid/merge-points-to-hex-grid.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/hex-grid/merge-points-to-hex-grid.py -------------------------------------------------------------------------------- /hex-grid/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/hex-grid/readme.md -------------------------------------------------------------------------------- /hex-grid/sample-hex-grid-usage-au.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/hex-grid/sample-hex-grid-usage-au.sql -------------------------------------------------------------------------------- /hex-grid/sample-hex-grid-usage-us.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/hex-grid/sample-hex-grid-usage-us.sql -------------------------------------------------------------------------------- /hex-grid/sample-images/au-hex-grid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/hex-grid/sample-images/au-hex-grid.png -------------------------------------------------------------------------------- /hex-grid/sample-images/syd-hex-grid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/hex-grid/sample-images/syd-hex-grid.png -------------------------------------------------------------------------------- /hex-grid/sample-images/us-hex-grid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/hex-grid/sample-images/us-hex-grid.png -------------------------------------------------------------------------------- /hex-grid/xx-testing.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/hex-grid/xx-testing.sql -------------------------------------------------------------------------------- /osm/optimise_loaded_tables.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/osm/optimise_loaded_tables.sql -------------------------------------------------------------------------------- /parallel-pgrouting/create_parallel_processing_function.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/parallel-pgrouting/create_parallel_processing_function.sql -------------------------------------------------------------------------------- /parallel-pgrouting/pgrouting-create-travel-zone-routes-function.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/parallel-pgrouting/pgrouting-create-travel-zone-routes-function.sql -------------------------------------------------------------------------------- /parallel-pgrouting/prep-nsw-bts-data-travel-zones.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/parallel-pgrouting/prep-nsw-bts-data-travel-zones.sql -------------------------------------------------------------------------------- /parallel-pgrouting/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/parallel-pgrouting/readme.md -------------------------------------------------------------------------------- /parallel-processing/01_load_boundaries.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/parallel-processing/01_load_boundaries.bat -------------------------------------------------------------------------------- /parallel-processing/01_load_boundaries.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/parallel-processing/01_load_boundaries.sh -------------------------------------------------------------------------------- /parallel-processing/02_create_random_points.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/parallel-processing/02_create_random_points.sql -------------------------------------------------------------------------------- /parallel-processing/functions/create_parallel_processing_function.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/parallel-processing/functions/create_parallel_processing_function.sql -------------------------------------------------------------------------------- /parallel-processing/functions/create_parallel_processing_function_pg_94.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/parallel-processing/functions/create_parallel_processing_function_pg_94.sql -------------------------------------------------------------------------------- /parallel-processing/functions/create_random_points_in_polygon_function.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/parallel-processing/functions/create_random_points_in_polygon_function.sql -------------------------------------------------------------------------------- /parallel-processing/python-test/create_partitioned_table/create_table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/parallel-processing/python-test/create_partitioned_table/create_table.sql -------------------------------------------------------------------------------- /parallel-processing/python-test/create_partitioned_table/create_table_partitions.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/parallel-processing/python-test/create_partitioned_table/create_table_partitions.py -------------------------------------------------------------------------------- /parallel-processing/python-test/create_partitioned_table/create_table_partitions.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/parallel-processing/python-test/create_partitioned_table/create_table_partitions.sql -------------------------------------------------------------------------------- /parallel-processing/python-test/create_partitioned_table/get_partition_ranges.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/parallel-processing/python-test/create_partitioned_table/get_partition_ranges.sql -------------------------------------------------------------------------------- /parallel-processing/python-test/create_partitioned_table/insert_into_table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/parallel-processing/python-test/create_partitioned_table/insert_into_table.sql -------------------------------------------------------------------------------- /parallel-processing/python-test/create_table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/parallel-processing/python-test/create_table.sql -------------------------------------------------------------------------------- /parallel-processing/python-test/parallel_sql_processing_test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/parallel-processing/python-test/parallel_sql_processing_test.py -------------------------------------------------------------------------------- /parallel-processing/python-test/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/parallel-processing/python-test/readme.md -------------------------------------------------------------------------------- /parallel-processing/python-test/the_query.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/parallel-processing/python-test/the_query.sql -------------------------------------------------------------------------------- /parallel-processing/python-test/xx-test-results.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/parallel-processing/python-test/xx-test-results.sql -------------------------------------------------------------------------------- /parallel-processing/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/parallel-processing/readme.md -------------------------------------------------------------------------------- /partitioning/create_table_and_insert_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/partitioning/create_table_and_insert_data.py -------------------------------------------------------------------------------- /partitioning/create_table_statement.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/partitioning/create_table_statement.sql -------------------------------------------------------------------------------- /partitioning/insert_statement.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/partitioning/insert_statement.sql -------------------------------------------------------------------------------- /pg-exporter/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /pg-exporter/arguments.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/pg-exporter/arguments.py -------------------------------------------------------------------------------- /pg-exporter/pg2xls.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/pg-exporter/pg2xls.py -------------------------------------------------------------------------------- /pg-exporter/pg_export.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/minus34/postgis-scripts/HEAD/pg-exporter/pg_export.py --------------------------------------------------------------------------------