{"comment":{"url":"https://api.github.com/repos/lorddux/postgres/comments/28233037","html_url":"https://github.com/lorddux/postgres/commit/b35f9c3367c58e8a0a910c90de0d2600554c0307#commitcomment-28233037","id":28233037,"user":{"login":"lorddux","id":9670663,"avatar_url":"https://avatars3.githubusercontent.com/u/9670663?v=4","gravatar_id":"","url":"https://api.github.com/users/lorddux","html_url":"https://github.com/lorddux","followers_url":"https://api.github.com/users/lorddux/followers","following_url":"https://api.github.com/users/lorddux/following{/other_user}","gists_url":"https://api.github.com/users/lorddux/gists{/gist_id}","starred_url":"https://api.github.com/users/lorddux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lorddux/subscriptions","organizations_url":"https://api.github.com/users/lorddux/orgs","repos_url":"https://api.github.com/users/lorddux/repos","events_url":"https://api.github.com/users/lorddux/events{/privacy}","received_events_url":"https://api.github.com/users/lorddux/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":null,"commit_id":"b35f9c3367c58e8a0a910c90de0d2600554c0307","created_at":"2018-03-23T09:58:57Z","updated_at":"2018-03-23T09:58:57Z","author_association":"OWNER","body":"A few words about patch\r\nIt seems like the history is used to compress the next inputs. The history is static so that the results of all previous changes of all threads affect the next compression. In other words, the original algorithm is inseparable from static arrays. Thus, there is a critical section that is not desirable to work with multiple threads at the same time. In these conditions the only way out I saw are mutexes.\r\nThis macro I found in the study of source code. As I understand it, to collect Postgres can be thread safe or not, and this macro is responsible for this parameter. Decided that it's appropriate to use it here.\r\n\r\nIn the end, it was necessary to create a thread-safe API, but it did not mention how."}}
{"actor":{"display_login":"lorddux"}}