PostgreSQL Data Directories Configuration
The Data Directory (PGDATA) is the absolute path where the data and other files of a specific PostgreSQL instance are stored.
Usually, for each instance, a directory is created under /var/lib/pgsql/VV, where VV refers to the PostgreSQL major version.
On the same machine, multiple instances of the same or different PostgreSQL versions can be initialized, each with its own Data Directory and Connection Port.
pgsmart db config [Flags]
Flags:
-D, --pgdata=<path> [Default: data].=> PostgreSQL instance Data Directory.-M, --pgversion=(11|12|13|14|15).=> PostgreSQL major version.-a, --agent=<agent>.=> Alias, hostname or IP address of the server where a PgSmart Agent is installed.-h, --help.=> Help
Non-interactive execution is disabled for this operation.
pgsmart db config
Instance Data Directories Configuration
-
Select the
PgSmart Agent(or Register a new Agent). -
Select
Configurações dos Diretóriosfrom the options menu. -
Select
Diretórios de Dados das Instânciasfrom the options menu.
Upon selecting Diretórios de Dados das Instâncias, the following operations are available:
- Listar: Allows viewing already existing Data Directories.
- Adicionar: Allows adding a new Instance Data Directory.
- Editar: Allows editing an existing Instance Data Directory.
- Remover: Removes an existing Instance Data Directory.
List Instance Data Directories
- Instructions
- Video
- Select the
Listaroption.
The list of registered Instance Data Directories will be displayed.

Add an Instance Data Directory
- Instructions
- Video
-
Select the
Adicionaroperation. -
Enter the
PostgreSQL Data Directory, the Alias, and confirm the addition.

Edit an Instance Data Directory
- Instructions
- Video
-
Select the
Editaroperation. -
Select a
PostgreSQL Data Directory. -
Enter the Data Directory location, the Alias, and confirm the edit.

Remove an Instance Data Directory
- Instructions
- Video
- Select the
Removeroperation.
The list of Instance Data Directories will be displayed for selection.
-
Select the
Instance Data Directoryyou want to remove. -
Confirm the removal.
