citusdata / citusdata/cstore_fdw

Drop statement leaves table in inconsistent state after rollback

Open
#216 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
1.8k
Forks
169
PR merge metrics
No merged PRs in 30d

Description

Hello, I have ran into issue with dropping cstore table and then rollbacking the transaction.
Rollback leaves the table in an inconsistent state as the table definition still exists (which is correct), but cstore data files are deleted and not rolled back with the rest of the transaction.
Steps to reproduce:
```sql
-- create empty cstore table
create foreign table cstore_drop_test()
server cstore_server;

-- query without errors
select * from cstore_drop_test;

-- drop cstore table and then rollback
DO language plpgsql
$$
DECLARE
BEGIN
drop foreign table cstore_drop_test;
rollback;
END
$$;

-- query fails on 'could not open file "xxx.footer" for reading'
select * from cstore_drop_test;
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.