Auteur/autrice : Josselin Joly
-
L’avis du RSSI
🔹 1. Compte système postgres (OS) Unique et dédié à l’administration PostgreSQL. Pas d’accès métier dessus. Doit avoir : Mot de passe fort / clé SSH pour accès distant. Historique […]
-
Bonnes pratiques partie 1
On distingue : Et pourquoi il ne faut pas confondre les deux ni les mélanger avec les comptes « métiers ». 🔹 1. Séparation des responsabilités (principe de moindre privilège) […]
-
A propos des fichiers wal
Déplacer les fichiers WAL (Write-Ahead Log) en dehors du répertoire $PGDATA est une bonne pratique dans certaines architectures car ça touche directement la performance et la sécurité des données. Voici […]
-
Tuning SQL Server
A partir de la version 2017 : Automatic tuning – SQL Server | Microsoft Learn Surveillance et réglage des performances – SQL Server | Microsoft Learn Script T-SQL pour : […]
-
Create a big test table
source : /https://www.cybertec-postgresql.com/en/btree-vs-brin-2-options-for-indexing-in-postgresql-data-warehouses/ btree vs. BRIN: 2 options for indexing in PostgreSQL data warehouses Create a big random table : test=# CREATE TABLE t_demo (id_sorted int8, id_random int8);CREATE TABLEtest=# INSERT […]
-
[Postgres] Use of partitionning
Improving PostgreSQL Performance with Partitioning My recommended methodology for performance improvement of PostgreSQL starts with query optimization. The second step is architectural improvements, part of which is the partitioning of […]
-
Sauvegarder plusieurs tables postgresql
#!/bin/bash #Configuration PGHOST= »localhost »PGPORT= »5432″PGUSER= »mon_utilisateur »PGDATABASE= »ma_base »BACKUP_DIR= »/chemin/vers/le/dossier_de_backup »TABLES=(« table1 » « table2 » « table3 ») # Liste des tables à sauvegarderDATE=$(date +%Y%m%d_%H%M%S) Export du mot de passe (évite la saisie manuelle) export PGPASSWORD= »mon_mot_de_passe » #Création du dossier de backup s’il n’existe […]
-
Oracle local registry(OLR) in RAC
Interroger la configuration réseau de notre cluster Oracle pour se rendre compte de l’état de santé de note nœud :# export ORACLE_SID=+ASM1# export ORAENV_ASK=NO# . oraenv# oifcfg getif Emplacement par […]
