-
Notifications
You must be signed in to change notification settings - Fork 36
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
Migrate from pg2 to pg (OTP 23) #47
Comments
Another big problem is
Seems like it also applies to |
Hey, @alisinabh thank you very much first of all 😄 ! On the other hand, yes, migrating from Let me know your thoughts, stay tuned! |
Hi, Thank you for your fast response. I think separating |
Any roadmap on the 0.7 release ? Thanks |
Hi @cabol, I just wanted to say I would be happy to help on this one if you are busy. Thanks again. |
Hey @alisinabh, yes sorry, I haven't had time for this one, but it would be awesome you can contribute. I'm thinking of move the Maybe something like: -module(shards_cluster).
-export([...]).
-ifndef(OTP_RELEASE).
%% Because OTP_RELEASE macro was introduced since OTP 21, so ensure it is defined
-define(OTP_RELEASE, 20). %=> I think it can be any value less than 21
-endif.
-if(?OTP_RELEASE >= 23).
%% function impl using new pg
-else.
%% use pg2
-endif.
I hope this could be helpful, otherwise, let me know, I'm glad to help! Thanks! |
@cabol It's my pleasure, I'm on it. Will inform you of the progress... |
OK, So there is a problem. In the new So we cannot join or leave remote processes! Another problem is the new For the first problem we can use For the second problem we can again use Also @cabol Let me know what you think. |
Sounds good, I'm aware |
Hey @alisinabh! There are several and new breaking changes in the master branch already (it should fix this issue). In short, I created the repo for shards_dist, perhaps we can take it from there, create some GH issues for implementing the v1. Let me know your thoughts, stay tuned, THANKS!! |
Thank you very much for your efforts. I'm waiting for those issues. Have a great day. ❤️ |
I'll close this issue since it doesn't apply anymore, with |
Hi,
As of OTP 23, The
pg2
module has been deprecated and replaced with similar but fasterpg
module.I think for most parts changing
pg2
withpg
will do the trick.But there are couple places in this library which used
create/1
anddelete/1
functions.These functions are not present in
pg
.All
create/1
calls can be deleted.But
delete/1
is an issue! Since it may be used to clear a group but pg does not have a simple way of doing that.A substitute would be:
I don't know if doing this is necessary!
And I wanted to thank you for your amazing libraries. ❤️
The text was updated successfully, but these errors were encountered: