Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

251
Visualizações
How to get a partial dump of a postgresql database for non-production environments?

I've got 40+ tables, millions of rows per table, hundreds of foreign key relationships and constraints.

I would like to get the entire exact table structure copied over but with say maybe a few hundred or a few thousand rows for creating light development environments.

Thus far, I've only seen pg_dump which, while it can export a single table's partial rows, has no way of exporting a partial database with a few rows per table while maintaining referential integrity, that is, if a table depends on some foreign key, make sure there are certain values of that foreign key in the referenced table too so the relationship is intact.

Given the massive number of tables (which change quite frequently), it would be challenging to create and maintain manual INSERT commands for so many tables.

Is there any solution for this? (for postgresql specifically)

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Did you try Jailer? I have had good experiences with it.

Features:

  • Exports consistent and referentially intact row-sets from your productive database and imports the data into your development and test environment.
  • Data Browsing. Navigate bidirectionally through the database by following foreign-key-based or user-defined relationships.
  • SQL Console with code completion, syntax highlighting and database metadata visualization.
  • A demo database is included with which you can get a first impression without any configuration effort.
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda