-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[lock] Add store dedicated to postgresql #38346
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
Conversation
I'm not sure I understand what you mean here. Is concurrency within the same process really an issue? E.g. |
This is a design choice that allows concurrency within the same process.
All Store test extends an LockAbstractTest that assert this. The php |
This is the kind of feature I proposed when I made a PR to add a |
@@ -97,8 +97,16 @@ public static function createStore($connection) | |||
case 0 === strpos($connection, 'sqlite3://'): | |||
return new PdoStore($connection); | |||
|
|||
case 0 === strpos($connection, 'pgsql+advisory:'): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about the name of scheme.
If you have suggestion
I'm truly sorry if I offended you with my comment @GromNaN. Time flies, and since Decembre 2017, many things changed:
|
Thank you for taking time to reply. I was not offended. On the contrary I'm satisfied by the |
Thank you @jderusse. |
This PR was merged into the 5.x branch. Discussion ---------- [lock] Mark Key unserializable whith PgsqlStore | Q | A | ------------- | --- | Branch? | 5.x | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | / | License | MIT | Doc PR | / Marks key unserializable #38395 with the new PgsqlStore #38346 Commits ------- eb934e9 Mark Key unserializable whith PgsqlStore
This PR adds 2 new Stores to the Lock component:
Difference with PDO:
By design the lock is linked to the connection with the database, which imply: