-
Notifications
You must be signed in to change notification settings - Fork 202
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
Ideas #93
Comments
Is there already an ability to limit rows without using a group? If not that would be good (and I'd attempt a PR). |
Hey @RipTheJacker, you should be able to do: pgsync table "limit 1000" |
@ankane I was thinking as part of the config, in essence the same as group config but a level higher. But maybe this way is a better practice. |
@ankane I'm wondering if it's possible to mix the usage of |
Hey @caioariede, I'm not sure how you could combine the two, but feel free to fork and experiment. |
Is it possible to set |
I needed to replace names, emails, and addresses. I was experimenting with Faker, do you think it's a good idea? |
@alextakitani one thing to keep in mind with libraries like Faker is that they can get pretty slow if you're relying on random data. With small datasets that can be okay though. |
Indeed @caioariede , that was my experience. I'm using Faker inside Postgres, https://gitlab.com/dalibo/postgresql_faker But not everyone can install extensions in production ( that's my case ) So I ended up downloading a backup, restoring locally and then generating a sync with fake data. |
What if there is an option to "skip" the wrong line? For example, if there was a chance to skip the line with the error "y(insert or update on table "xxxx" violates foreign key constraint "xxxx")" and continue synchronization? @ankane |
@Natgho once that error happens the wrapping transaction is polluted and can't continue, so I think that would be hard to do |
I noticed that the tables are copied sequentially. If the |
Ideas
$1
) and quote by defaultpgsync src:dst
), which is current used for variables. Could change variables to usepgsync product=123
.to_safe_hosts
to replaceto_safe
(with*
for all)The text was updated successfully, but these errors were encountered: