pythonpostgresqlopendata

how to configure postgresql


I hope you can help me. I'm trying to use open data cube (if you don't know what this is the link https://www.opendatacube.org), in the instructions to use it it's written to use postgreSql and to use postgreSql portable. Still in the instructions he says he has to configure a file called datacube.conf but I don't find it anywhere. Do I have to create it? and if you give it must be saved? Have any of you already used it?


Solution

  • According to the instructions provided here: https://datacube-core.readthedocs.io/en/latest/ops/db_setup.html

    Install portable Postgre from the documentation link (It seems you are on Win..). After you're done, launch the portable Postgre application and paste the SQL statements highlighted in the documentation, and keep the database running.

    Before starting DataCube you also have to create a configuration file by yourself .datacube.conf with the given content highlighted in the doc also. Preferably, create an environment variable with name DATACUBE_CONFIG_PATH for the config file so DataCube can find it. Finally, place the file to the path you specified in your environment variable.

    See how to create environment variable for your system:

    https://helpdeskgeek.com/how-to/create-custom-environment-variables-in-windows/