Catégorie : Postgresql
-
Ora2PG now supports oracle_fdw to increase the data migration speed
source : https://www.migops.com/blog/2021/07/01/ora2pg-now-supports-oracle_fdw-to-increase-the-data-migration-speed/
-
[PostgreSQL] Voir les tables partitionnées
WITH RECURSIVE partition_info(relid, relname, relsize, relispartition, relkind)AS (SELECT oid AS relid, relname, pg_relation_size(oid) AS relsize, relispartition, relkind FROM pg_catalog.pg_class WHERE relkind = ‘p’ AND relname = ‘mof_ple_part’ — Pour une […]
-
[PostgreSQL] Déploiement d’un cluster PATRONI
Convert a Standalone to a Patroni Cluster Déployer le cluster PATRONI dans un nouvel environnement
-
[PostgreSQL] Voir les tablespaces
show default_tablespace ;alter system set default_tablespace=’tbs_msg_data’ ;select pg_reload_conf();show default_tablespace show temp_tablespaces ;alter system set temp_tablespaces=’temp’ ;select pg_reload_conf();show temp_tablespaces
-
[PostgreSQL]Kill une session
SELECT *, pg_terminate_backend(pid)FROM pg_stat_activity WHERE pid <> pg_backend_pid()AND datname = ‘<dbname>’;# kill sessions# trouver la sessionsselect * from pg_stat_activity;select pg_terminate_backend(pid) from pg_stat_activitywhere pid = ‘PID’;
-
[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. #!/bin/sh# Desc : $1 is […]
-
[Postgres] Migration of roles + DB (including data and privs)
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 […]
-
[Postgresql]Explain plan analyzer
Analyser un explain plan https://explain.dalibo.com/ https://explain.tensor.ru/
-
[PostgreSQL]Un peu plus sur les indexes
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. Powa les indexes bitmap n […]