Pgsql tutorial

I've installed pgsql, but can't find any documentation for it. Can someone help me?

from what I see, the PostgreSQL package only creates postgres user and sets the PGDATA option to /var/postgresql/data (see https://github.com/openwrt/packages/blob/master/libs/postgresql/files/postgresql.config )
According to postgres documentation: https://www.postgresql.org/docs/13/storage-file-layout.html
that is where you will find the database config and the database files.
You can just follow normal postgres documentation you find on its official website to configure the database.

If you want to change the PGDATA folder you can edit the text file you find in /etc/config/postgresql and then restart the postgresql service with service postgresql restart

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.