Bases de données - [postgresql] Problème lors d'un pg_dump | pg_restore
BMPCreated with Sketch.BMPZIPCreated with Sketch.ZIPXLSCreated with Sketch.XLSTXTCreated with Sketch.TXTPPTCreated with Sketch.PPTPNGCreated with Sketch.PNGPDFCreated with Sketch.PDFJPGCreated with Sketch.JPGGIFCreated with Sketch.GIFDOCCreated with Sketch.DOC Error Created with Sketch.
Frage

[postgresql] Problème lors d'un pg_dump | pg_restore

Von
Community Deleted user
Erstellungsdatum 2020-08-12 10:12:06 (edited on 2024-09-04 14:08:32) in Bases de données

J'essaye de migrer un base de donnée postgresql vers clouddb postgresql 12, elle échoue sur

```
pg_dump --format=c --schema public --host localhost --port 5436 --user admin dbname | pg_restore --host xxxx-001.dbaas.ovh.net --schema public --port xxxx --user admin -d dbname --clean
[snip]

pg_restore: [archiver (db)] error returned by PQputCopyData: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
```

Arthur Lutz (Logilab)


1 Antwort ( Latest reply on 2020-08-12 18:26:49 Von
MikaelD1
)

Hi again ;)

Pour effectuer les pg_restore, je t'invite à utiliser https://api.ovh.com/ l'API ou le https://www.ovh.com/manager/ Control Panel. Techniquement, on ne fait rien de plus que ce que tu fais, sauf qu'un restore ayant généralement besoin de RAM, on boost temporairement l'instance en RAM avant de faire le restore (on ajoute 8 Go de RAM). La RAM supplémentaire est enlevée à la fin du restore.

À noter qu'il en est de même pour les dumps.

Mikaël

Antworten sind derzeit für diese Frage deaktiviert.