{"action":"created","issue":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/46860","labels_url":"https://api.github.com/repos/Homebrew/homebrew/issues/46860/labels{/name}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/46860/comments","events_url":"https://api.github.com/repos/Homebrew/homebrew/issues/46860/events","html_url":"https://github.com/Homebrew/homebrew/issues/46860","id":121468723,"number":46860,"title":"Postgres psql incorrect works on OSX 10.11.2","user":{"login":"1st","id":630224,"avatar_url":"https://avatars.githubusercontent.com/u/630224?v=3","gravatar_id":"","url":"https://api.github.com/users/1st","html_url":"https://github.com/1st","followers_url":"https://api.github.com/users/1st/followers","following_url":"https://api.github.com/users/1st/following{/other_user}","gists_url":"https://api.github.com/users/1st/gists{/gist_id}","starred_url":"https://api.github.com/users/1st/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1st/subscriptions","organizations_url":"https://api.github.com/users/1st/orgs","repos_url":"https://api.github.com/users/1st/repos","events_url":"https://api.github.com/users/1st/events{/privacy}","received_events_url":"https://api.github.com/users/1st/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-10T12:03:14Z","updated_at":"2015-12-10T23:52:18Z","closed_at":null,"body":"Hello.\r\n\r\n- Gist: https://gist.github.com/1st/5bbe6da1f5d18c31b419\r\n- OSX 10.11.2\r\n\r\nThe postgres works well if I connect to it via any external GUI client or via my web application.\r\n\r\nProblem appears when I try to connect to postgres via a command line utility:\r\n\r\n```shell\r\n$ psql testdb\r\npsql (9.4.5)\r\nType \"help\" for help.\r\n\r\nIllegal instruction: 4\r\n```\r\n\r\nI tried to `brew reinstall postgres` and totally uninstall it and install it again. I even deleted and initialise postgres databases folder `rm -r /usr/local/var/postgres && initdb /usr/local/var/postgres` but nothing help!\r\n\r\nI found that this problem may appear when CPP flag pointed to a different version of OSX. Can you check this and repair `psql` tool that comes with `postgres` installation?\r\n\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/Homebrew/homebrew/issues/comments/163789528","html_url":"https://github.com/Homebrew/homebrew/issues/46860#issuecomment-163789528","issue_url":"https://api.github.com/repos/Homebrew/homebrew/issues/46860","id":163789528,"user":{"login":"apjanke","id":2618447,"avatar_url":"https://avatars.githubusercontent.com/u/2618447?v=3","gravatar_id":"","url":"https://api.github.com/users/apjanke","html_url":"https://github.com/apjanke","followers_url":"https://api.github.com/users/apjanke/followers","following_url":"https://api.github.com/users/apjanke/following{/other_user}","gists_url":"https://api.github.com/users/apjanke/gists{/gist_id}","starred_url":"https://api.github.com/users/apjanke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apjanke/subscriptions","organizations_url":"https://api.github.com/users/apjanke/orgs","repos_url":"https://api.github.com/users/apjanke/repos","events_url":"https://api.github.com/users/apjanke/events{/privacy}","received_events_url":"https://api.github.com/users/apjanke/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T23:52:18Z","updated_at":"2015-12-10T23:52:18Z","body":"What model of Mac is this running on? Might be dependent on the particular CPU you're running. My mid-2010 MacBook Pro with an Arrandale Core i7 CPU was able to run it okay."}}