[HVAULT] Roles creation for dMZR postgreSQL- version batch
Roles creation for dMZR postgreSQL- version batch
script pour la création d'une nouvelle base dans le cloud IBM avec les rôles dans Hashicorp Vault.
En poursuivant votre navigation sur ce site, vous acceptez l'utilisation de cookies. Ces derniers assurent le bon fonctionnement de nos services. En savoir plus.
Roles creation for dMZR postgreSQL- version batch
script pour la création d'une nouvelle base dans le cloud IBM avec les rôles dans Hashicorp Vault.
Roles : own , app, devpg
Se connecter sur le serveur cible.
pg_dumpall --roles-only -h remotehost -U remoteuser | psql -h localhost -U localuser
pg_dump -C -h remotehost -U remoteuser dbname | psql -h localhost -U localuser
Changer mot de passe :
modifier paramètres dans yaml :
keystore_password
truststore_password
Changer de nom de cluster :
1 -UPDATE system.local SET cluster_name = '<cluster_name>' where key='local';
2- nodetool flush system (recommended)
SELECT grantee AS user, CONCAT(table_schema, '.', table_name) AS table,
CASE
WHEN COUNT(privilege_type) = 7 THEN 'ALL'
ELSE ARRAY_TO_STRING(ARRAY_AGG(privilege_type), ', ')
END AS grants
FROM information_schema.role_table_grants
GROUP BY table_name, table_schema, grantee;
Analyser un explain plan
PoWA (PostgreSQL Workload Analyzer) is a performance tool for PostgreSQL 9.4 and newer allowing to collect, aggregate and purge statistics on multiple PostgreSQL instances from various Stats Extensions.
Conversion datatype
useful to convert object into postgresql
postgres=> dtvsi+
List of relations
Schema | Name | Type | Owner | Table | Size | Description