ankane / ankane/pgsync

[Feature Request] Add option to show missing tables

Open
#237 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
3.5k
Forks
219
PR merge metrics
No merged PRs in 30d

Description

pgsync will tell you missing tables in the output

Example:
image

To show a list of different tables. comparing the missing ones from source in target, it would be much appreciate it if we can do

pgsync --list --diff

Since --schema-first & --schema-only wipes out the existing data in target DB, and pgsync will not sync data if target tables are missing it will make sense to be able to do

pgsync --schema-first $(pgsync --list --diff)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the CLI handling for --list and --diff, then trace how missing tables are identified between the source and target databases. Confirm the finished behavior lists the missing tables and that the output can be used with the proposed --schema-first command.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql, ruby
Domain
cli, databases
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
47/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.