Warning Work in progress
Postgres import scripts for the PATSTAT database.
This repository is based on https://github.com/altay-oz/load_patstat.
Copy config-template.sh to config.sh and adjust it to your needs.
Run the scripts under scripts folders.
base
b1-create-user-reader.shb2-grant-user-reader.sh
version
-
v1-create-db.sh -
v2-create-tables.shCreates tables using file
versions/{PATSTAT_VERSION}/create_tables.sql -
v3-insert-data.shInserts data to tables (only for tables listed in
versions/{PATSTAT_VERSION}/tables.txt) -
v4-add-indices.sh -
v4-add-keys.sh -
v4-get-row-counts.shCounts rows (only for tables listed in
versions/{PATSTAT_VERSION}/tables.txt)