{"action":"opened","issue":{"url":"https://api.github.com/repos/citusdata/citus/issues/960","repository_url":"https://api.github.com/repos/citusdata/citus","labels_url":"https://api.github.com/repos/citusdata/citus/issues/960/labels{/name}","comments_url":"https://api.github.com/repos/citusdata/citus/issues/960/comments","events_url":"https://api.github.com/repos/citusdata/citus/issues/960/events","html_url":"https://github.com/citusdata/citus/issues/960","id":187833777,"number":960,"title":"truncating append distributed table within transaction gives incorrect error message","user":{"login":"mtuncer","id":9413470,"avatar_url":"https://avatars.githubusercontent.com/u/9413470?v=3","gravatar_id":"","url":"https://api.github.com/users/mtuncer","html_url":"https://github.com/mtuncer","followers_url":"https://api.github.com/users/mtuncer/followers","following_url":"https://api.github.com/users/mtuncer/following{/other_user}","gists_url":"https://api.github.com/users/mtuncer/gists{/gist_id}","starred_url":"https://api.github.com/users/mtuncer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtuncer/subscriptions","organizations_url":"https://api.github.com/users/mtuncer/orgs","repos_url":"https://api.github.com/users/mtuncer/repos","events_url":"https://api.github.com/users/mtuncer/events{/privacy}","received_events_url":"https://api.github.com/users/mtuncer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-07T21:27:33Z","updated_at":"2016-11-07T21:27:33Z","closed_at":null,"body":"```sql\r\npostgres=# begin;\r\nBEGIN\r\npostgres=# truncate table t1;\r\nERROR:  DROP distributed table cannot run inside a transaction block\r\nCONTEXT:  SQL statement \"SELECT master_drop_all_shards(TG_RELID, TG_TABLE_SCHEMA, TG_TABLE_NAME)\"\r\nPL/pgSQL function citus_truncate_trigger() line 13 at PERFORM\r\n```\r\n\r\nerror message talks about drop distributed table even though I issued truncate.\r\n"}}
{"actor":{"display_login":"mtuncer"}}