Skip to content

Commit

Permalink
pass over read
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbr committed Jan 17, 2025
1 parent 65896f3 commit 46472e1
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions evaluation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,32 @@ Install the required packages:

```
sudo apt update
sudo apt install postgresql postgresql-contrib postgis postgresql-16-postgis-3
sudo apt-get install gdal-bin
sudo apt install postgresql postgresql-contrib postgis postgresql-16-postgis-3 gdal-bin
```

Next, create a new database in a directory of your choice.
Next, create a new database storage in a directory of your choice.
```
export POSTGIS_DIR=/local/data-ssd/postgis/spatialjoin
sudo mkdir -p ${POSTGIS_DIR} && sudo chown postgres:postgres ${POSTGIS_DIR}
sudo -u postgres /usr/lib/postgresql/16/bin/initdb -D ${POSTGIS_DIR}
sudo vim ${POSTGIS_DIR}/postgresql.conf
```
In the file `${POSTGIS_DIR}/postgresql.conf`, set the following:
In the file `${POSTGIS_DIR}/postgresql.conf`, set the following:
```
work_mem = 4MB
max_worker_processes = 8
max_parallel_workers_per_gather = 2
max_parallel_workers = 8
```
Afterwards, restart Postgres with the selected data dir:
Afterwards, restart Postgres with the selected database storage directory:

```
sudo su - postgres -c "/usr/lib/postgresql/16/bin/pg_ctl -D ${POSTGIS_DIR} -l logfile start"
```

## Create a database (if not already created), and list existing tables and indexes

Create a database `spatialjoin_db` and enable PostGIS. These commands will do nothing if
the database and extension were already created before.
## Create a database

Create a database `spatialjoin_db` and enable PostGIS.
```
sudo su - postgres -c "createdb spatialjoin_db"
psql -U postgres -d spatialjoin_db -c "CREATE EXTENSION postgis;"
Expand Down

0 comments on commit 46472e1

Please sign in to comment.