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órios
from the options menu. -
Select
Diretórios de Dados das Instâncias
from 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
Listar
option.
The list of registered Instance Data Directories will be displayed.

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

Edit an Instance Data Directory
- Instructions
- Video
-
Select the
Editar
operation. -
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
Remover
operation.
The list of Instance Data Directories will be displayed for selection.
-
Select the
Instance Data Directory
you want to remove. -
Confirm the removal.
