Postgresql - Page 10
-
Postgres
-
Pg tune et tune
Paramétrer votre architecture Postgres avec PgTune si t'as pas de tune pour payer un expert!!
Vous voulez tune votre SGBDR Postgres ! Normal.
-
Postgresql nouveautés dans chaque version
Bonjour,
On me demande de plus en plus d'effectuer des missions en postgres.
La question la plus récurrente : Avez vous des expériences en Postgres.
Les versions évoluent, de la 9.6 à la version 12 ...
Voici les nouveautés :
dans la version 11 , le Site officiel
Blog sur les nouveautés de la version 12.
Le rebuilt des indexes a été amélioré en version 12.
Le site officiel de la version 12 sortie le 03 octobre et stabilisée.
-
Méthode de sauvegarde PostgreSQL - pgBackRest
https://pgstef.github.io/2018/01/04/introduction_to_pgbackrest.html
https://fr.slideshare.net/slardiere/pgbackrest-pgdayfr
http://laetitia-avrot.blogspot.com/2017/02/faire-une-sauvegarde-avec-pgbackrest.html
http://laetitia-avrot.blogspot.com/2017/02/restaurer-avec-pgbackrest.html
-
Migration Oracle vers Postgres
-
Quelques commandes bien pratiques
-
Les Virtual Private Database (VPD) sur PGSQL
Les Virtual Private Database (VPD) sur PGSQL sont disponbiles depuis la version 9.1.
source : https://www.enterprisedb.com/blog/virtual-private-database-vpd-ppas-91
-
Show replication status in PostgreSQL
https://www.niwi.nz/2013/02/16/replication-status-in-postgresql/
select client_addr, state, sent_location, write_location, flush_location, replay_location from pg_stat_replication;
This query can output can be like this:
postgres=# select client_addr, state, sent_location,write_location, flush_location, replay_location, sync_priority from pg_stat_replication;
-
Disable Streaming Replication without restarting either master or slave
I understand the way things work currently, but would it not be more
convenient to let the replication be stopped and started from SQL commands
like:On Master:
select pg_pause_streaming_replication(slave_fqdn);
select pg_resume_streaming_replication(slave_fqdn);On Slave:
select pg_pause_streaming_replication();
select pg_pause_streaming_replication();If Cascaded Streaming Replication is confugured, then
On Slave:
select pg_start_streaming_replication(cascaded_slave_fqdn);
select pg_stop_streaming_replication(cascaded_slave_fqdn);Or an OS executable [ either in the core or a contrib module] like
pg_replication -p primary_fqdn -s slave_fqdn -a pause
pg_replication -p primary_fqdn -s slave_fqdn -a resume
pg_replication -p primary_fqdn -s slave_fqdn -a setup[ the last one would awesome; and i do not think that it is impossible, and
would be loved by one and all ] -
[script] Backup