Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pg_dump support #105

Open
CodingFu opened this issue Jun 21, 2024 · 2 comments
Open

pg_dump support #105

CodingFu opened this issue Jun 21, 2024 · 2 comments
Assignees

Comments

@CodingFu
Copy link

HI everyone.
I'm trying to run this on very interesting env: Internet Computer blockchain

I have a very simple question:

If I run it in memory, how do I dump memory to a string and then load it from string to memory?

@samwillis
Copy link
Collaborator

A could of updates on this:

  1. In 'main' we have support for COPY TO/FROM using a special '/dev/blob' device. This enables import to/from CSV and a Postgres binary format.
  2. Our 'next' branch has support for loading and dumping the database dir as a tar.gz, this will be merged soon PGlite Next - Based on Postgres 16.x #112
  3. We are looking into how to support pg_dump and related tools to export/import a database.

@samwillis samwillis changed the title How do I dump / load database? pg_dump support Jul 27, 2024
@neutralboy
Copy link

Hey @samwillis,
I'd just like to add to the fact that supporting pg_dump / pg_restore would allow pglite to be used as a mock in tests with full extension support. This sounds exciting to me, Id' like to help if someone is already working on it or start a PR myself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants