We dropped MySQL support and a lot of mysql specific code has been removed in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/29608. This comes in from the other direction and removes any `if postgresql?` branches.
The API get projects/:id/traffic/fetches allows user with write access to the repository to get the number of clones for the last 30 days.