Make a dump of a database

47 views
Skip to first unread message

William Moreno

unread,
Aug 26, 2016, 1:33:37 PM8/26/16
to pg8000
I am looking and pg8000 docs looking for a way to do a dump (backup) of a postgresql db, but even in postgresql docs all references to a database dump refers to pg_dump. I am not sure if a database dump may posible vía pg8000 or may be a feature for news releases.

Mathieu Fenniak

unread,
Aug 26, 2016, 7:52:37 PM8/26/16
to pg8...@googlegroups.com
Hey William,

It's not possible.  It's just not the right tool for the job; pg8000 is just a library for accessing a PostgreSQL database from Python.  Dumping a database is a large and complex application that would use a library like pg8000.

pg_dump is the right tool for performing a database backup.  It uses PostgreSQL's native libpq rather than a library like pg8000, but effectively it's an application written with a library for the purpose of doing exactly what you're asking for.

Mathieu


On Fri, Aug 26, 2016 at 11:33 AM William Moreno <william...@gmail.com> wrote:
I am looking and pg8000 docs looking for a way to do a dump (backup) of a postgresql db, but even in postgresql docs all references to a database dump refers to pg_dump. I am not sure if a database dump may posible vía pg8000 or may be a feature for news releases.

--
Has recibido este mensaje porque estás suscrito al grupo "pg8000" de Grupos de Google.
Para anular la suscripción a este grupo y dejar de recibir sus mensajes, envía un correo electrónico a pg8000+un...@googlegroups.com.
Para acceder a más opciones, visita https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages