{"action":"created","issue":{"url":"https://api.github.com/repos/cockroachdb/cockroach/issues/2056","labels_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/2056/labels{/name}","comments_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/2056/comments","events_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/2056/events","html_url":"https://github.com/cockroachdb/cockroach/pull/2056","id":100332819,"number":2056,"title":"Add RENAME DATABASE","user":{"login":"XisiHuang","id":13212267,"avatar_url":"https://avatars.githubusercontent.com/u/13212267?v=3","gravatar_id":"","url":"https://api.github.com/users/XisiHuang","html_url":"https://github.com/XisiHuang","followers_url":"https://api.github.com/users/XisiHuang/followers","following_url":"https://api.github.com/users/XisiHuang/following{/other_user}","gists_url":"https://api.github.com/users/XisiHuang/gists{/gist_id}","starred_url":"https://api.github.com/users/XisiHuang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XisiHuang/subscriptions","organizations_url":"https://api.github.com/users/XisiHuang/orgs","repos_url":"https://api.github.com/users/XisiHuang/repos","events_url":"https://api.github.com/users/XisiHuang/events{/privacy}","received_events_url":"https://api.github.com/users/XisiHuang/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cockroachdb/cockroach/labels/PTAL","name":"PTAL","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-11T15:00:24Z","updated_at":"2015-08-11T15:57:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cockroachdb/cockroach/pulls/2056","html_url":"https://github.com/cockroachdb/cockroach/pull/2056","diff_url":"https://github.com/cockroachdb/cockroach/pull/2056.diff","patch_url":"https://github.com/cockroachdb/cockroach/pull/2056.patch"},"body":"see #2034.\r\nStill work in progress.\r\nI wil need to support for ```if exist``` and return better error info when new name exists.\r\nTell me if you have other opinions."},"comment":{"url":"https://api.github.com/repos/cockroachdb/cockroach/issues/comments/129945481","html_url":"https://github.com/cockroachdb/cockroach/pull/2056#issuecomment-129945481","issue_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/2056","id":129945481,"user":{"login":"MBerhault","id":5901480,"avatar_url":"https://avatars.githubusercontent.com/u/5901480?v=3","gravatar_id":"","url":"https://api.github.com/users/MBerhault","html_url":"https://github.com/MBerhault","followers_url":"https://api.github.com/users/MBerhault/followers","following_url":"https://api.github.com/users/MBerhault/following{/other_user}","gists_url":"https://api.github.com/users/MBerhault/gists{/gist_id}","starred_url":"https://api.github.com/users/MBerhault/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MBerhault/subscriptions","organizations_url":"https://api.github.com/users/MBerhault/orgs","repos_url":"https://api.github.com/users/MBerhault/repos","events_url":"https://api.github.com/users/MBerhault/events{/privacy}","received_events_url":"https://api.github.com/users/MBerhault/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T15:57:53Z","updated_at":"2015-08-11T15:57:53Z","body":"you mention `if exists` in your description. There's no such option in postgres. I don't think we need it either. We do need a better error message when the new name is already taken though."}}