{"action":"created","issue":{"url":"https://api.github.com/repos/postgres-x2/postgres-x2/issues/283","labels_url":"https://api.github.com/repos/postgres-x2/postgres-x2/issues/283/labels{/name}","comments_url":"https://api.github.com/repos/postgres-x2/postgres-x2/issues/283/comments","events_url":"https://api.github.com/repos/postgres-x2/postgres-x2/issues/283/events","html_url":"https://github.com/postgres-x2/postgres-x2/issues/283","id":102283011,"number":283,"title":"fix two bug about sequence ","user":{"login":"xuegang","id":10717876,"avatar_url":"https://avatars.githubusercontent.com/u/10717876?v=3","gravatar_id":"","url":"https://api.github.com/users/xuegang","html_url":"https://github.com/xuegang","followers_url":"https://api.github.com/users/xuegang/followers","following_url":"https://api.github.com/users/xuegang/following{/other_user}","gists_url":"https://api.github.com/users/xuegang/gists{/gist_id}","starred_url":"https://api.github.com/users/xuegang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xuegang/subscriptions","organizations_url":"https://api.github.com/users/xuegang/orgs","repos_url":"https://api.github.com/users/xuegang/repos","events_url":"https://api.github.com/users/xuegang/events{/privacy}","received_events_url":"https://api.github.com/users/xuegang/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-21T02:47:21Z","updated_at":"2015-08-24T02:54:25Z","closed_at":"2015-08-24T02:54:25Z","body":"Bug 1\r\n  Recreate step:\r\n      1.create sequence test_seq increment by -1\r\n      2.vim gtm.control\r\n            postgres.public.test_seq\\00     -9223372036854775807    -1      -1   -9223372036854775807      \r\n                -1      f       f       1\r\n\r\n      This bug is that last_value of sequnence \" -9223372036854775807\" is wrong. The right value is \r\n        -2001.\r\n\r\nsecond bug is as follows:\r\n   1.create sequence test_seq increment by -1\r\n   2.call twice \"select nextval('test_seq ')\" \r\n   3.kill -9 gtm\r\n   4. restart gtm\r\n   5.select nextval('test_seq ');\r\n   6.you will get -1\r\n\r\nyou will found that nextval got the wrong value, the right value is -2001\r\n\r\nNow I have fix these two bugs. Later I will commit patch to you. if any problem. Please let me know."},"comment":{"url":"https://api.github.com/repos/postgres-x2/postgres-x2/issues/comments/134000583","html_url":"https://github.com/postgres-x2/postgres-x2/issues/283#issuecomment-134000583","issue_url":"https://api.github.com/repos/postgres-x2/postgres-x2/issues/283","id":134000583,"user":{"login":"koichi-szk","id":985469,"avatar_url":"https://avatars.githubusercontent.com/u/985469?v=3","gravatar_id":"","url":"https://api.github.com/users/koichi-szk","html_url":"https://github.com/koichi-szk","followers_url":"https://api.github.com/users/koichi-szk/followers","following_url":"https://api.github.com/users/koichi-szk/following{/other_user}","gists_url":"https://api.github.com/users/koichi-szk/gists{/gist_id}","starred_url":"https://api.github.com/users/koichi-szk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koichi-szk/subscriptions","organizations_url":"https://api.github.com/users/koichi-szk/orgs","repos_url":"https://api.github.com/users/koichi-szk/repos","events_url":"https://api.github.com/users/koichi-szk/events{/privacy}","received_events_url":"https://api.github.com/users/koichi-szk/received_events","type":"User","site_admin":false},"created_at":"2015-08-24T02:54:25Z","updated_at":"2015-08-24T02:54:25Z","body":"The fix was committed to relevant branches,\r\n\r\nmaster: 64c43fc09492a5d2d29d92aa98ccd12006ed154c\r\nREL1_2_STABLE: fdbbd077c4982c470fe78eac4db912c028db5fc1\r\nREL1_1_STABLE: 8d590b5ed227b5b05efadbe51c76180bc5a4149b"}}