Je ne suis pas sûr qu'on ait la même définition de moteur. Par contre, vous pouvez très bien déplacer /var/lib/pgsql/10/base en dehors de /var/lib/pgsql/10. Par contre, il faudra ajouter un lien symbolique pour que PostgreSQL s'y retrouve.
]]>est il possible de séparer le moteur BDD et le ficher de BDD?
sur oracle j ai mon moteur de bdd dans un fs spécifique et ma bdd dans un autre
en gros je voudrais pouvoir séparer /var/lib/pgsql/10/** et /var/lib/pgsql/10/base ?
est ce possible?
]]>Bonjour
quand je lance une commande postgre j'ai ma réplication qui pose souci ( enfin je crois)
psostgres=# insert into temoin values(current_timestamp) returning *;
^CCancel request sent
WARNING: canceling wait for synchronous replication due to user request
DETAIL: The transaction has already committed locally, but might not have been replicated to the standby.
INSERT 0 1postgres=# select * from pg_stat_replication ;
pid | usesysid | usename | application_name | client_addr | client_hostname | client_port | backend_start | backend_xmin | state
| sent_lsn | write_lsn | flush_lsn | replay_lsn | write_lag | flush_lag | replay_lag | sync_priority | sync_state
-------+----------+----------+--------------------------+-------------+-----------------+-------------+-------------------------------+--------------+--------
---+------------+------------+------------+------------+-----------------+-----------------+----------------+---------------+------------
20901 | 10 | postgres | local_barman_receive_wal | 127.0.0.1 | | 9348 | 2018-07-16 14:06:02.569536+02 | | streami
ng | 0/38000540 | 0/38000540 | 0/38000000 | | 00:00:03.791241 | 00:16:48.764655 | 00:30:55.02751 | 1 | sync
(1 row)je précise je suis toujours dans un environnement mono serveur
cordialement
J'avais un backup failed après la suppression de celui ci dans barman plus de problème .
Maintenant ça fonctionne
]]>quand je lance une commande postgre j'ai ma réplication qui pose souci ( enfin je crois)
psostgres=# insert into temoin values(current_timestamp) returning *;
^CCancel request sent
WARNING: canceling wait for synchronous replication due to user request
DETAIL: The transaction has already committed locally, but might not have been replicated to the standby.
INSERT 0 1
postgres=# select * from pg_stat_replication ;
pid | usesysid | usename | application_name | client_addr | client_hostname | client_port | backend_start | backend_xmin | state
| sent_lsn | write_lsn | flush_lsn | replay_lsn | write_lag | flush_lag | replay_lag | sync_priority | sync_state
-------+----------+----------+--------------------------+-------------+-----------------+-------------+-------------------------------+--------------+--------
---+------------+------------+------------+------------+-----------------+-----------------+----------------+---------------+------------
20901 | 10 | postgres | local_barman_receive_wal | 127.0.0.1 | | 9348 | 2018-07-16 14:06:02.569536+02 | | streami
ng | 0/38000540 | 0/38000540 | 0/38000000 | | 00:00:03.791241 | 00:16:48.764655 | 00:30:55.02751 | 1 | sync
(1 row)
je précise je suis toujours dans un environnement mono serveur
cordialement
]]>je cherche maintenant a restaurer la dernière transaction validé pour avoir le plus court RPO
quelle est la bonne méthode?
cordialement
]]>le postgresql.conf contient des erreurs. Le mieux est de nous envoyer les lignes décommentées de ce fichier.
Merci vous m avez debloqué j'avais decommenté la ligne archive_commande mais sans supprimer la ligne archive_commande= false
juste en dessous
donc maintenant j arrive a me balader avant la création des tables et a restaurer à après la création des tables
(je ne fais pas de BDD et je suis sur un projet passage de ORACLE à POSTGRE ^^ il y a un début a tout)
Merci
]]>cette ligne :
#BARMAN# archive_command = 'rsync -a %p barman@XXXXXXX:/incoming-wal/%f'est commentée donc pas prise en compte par postgres.
oui j'ai essayé de la de-commenter voir si cela changer quelque chose mais ça n'a rien changé
]]>est commentée donc pas prise en compte par postgres.
]]>https://pgphil.ovh/restauration_10_23_02.php
dans tous les cas je suis bloqué a cette étape
2018-07-12 14:29 :42.602 CEST [20239] LOG: archive command failed with exit code 1
2018-07-12 14:29:42.602 CEST [20239] DETAIL: The failed archive command was: false
2018-07-12 14:29:42.602 CEST [20239] WARNING: archiving write-ahead log file "00000002.history" failed too many times, will try again later
mv /postgresql/pgsql/10/data/postgresql.auto.conf.origin /postgresql/pgsql/10/data/postgresql.auto.conf
2018-07-12 14:26:51.423 CEST [20231] LOG: received SIGHUP, reloading configuration files
2018-07-12 14:26:51.424 CEST [20231] LOG: parameter "data_directory" cannot be changed without restarting the server
2018-07-12 14:26:51.424 CEST [20231] LOG: configuration file "/postgresql/pgsql/10/data/postgresql.conf" contains errors; unaffected changes were applied
dans le fichier postgresql.conf
#BARMAN# archive_command = 'rsync -a %p barman@XXXXXXX:/incoming-wal/%f'
j ai essayé de rajouter l'archive commande mais ca ne passe pas
cordialement
]]>Merci pour votre retour auriez vous une doc car je ne trouve rien ou je ne cherche peux être pas avec les bon termes
cordialement
]]>