ankane / ankane/pgsync

Table allowlist

Open
#210 0 comments 5 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

I was hoping to allowlist the tables I want sync in .pgsync.yml, something like:

tables:
  - table1
  - table2

Workarounds

  • I could do pgsync table1,table2, but I worry that someone by mistake does just pgsync and then syncs we don't want synced, thus overwriting data.
  • I could add a blocklist (exclude), but I worry that someone adds a new user-data table and forgets to add it there and then it gets overwritten.

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 tracing how .pgsync.yml is read and how the pgsync command selects tables for synchronization. Compare the requested allowlist with the existing pgsync table1,table2 behavior and verify that running without table arguments syncs only configured tables; done means unlisted tables are not synchronized.

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
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.