GithubHelp home page GithubHelp logo

Comments (5)

jberkus avatar jberkus commented on May 18, 2024

Actually, examing what happened above, the errors which happen on CREATE are being supressed. The actual issue was that I hadn't deleted the cstore_footer file. Since I got no error message about that, I didn't know what was wrong.

from cstore_fdw.

jberkus avatar jberkus commented on May 18, 2024

I'd say that this is a bug, not an enhancement.

from cstore_fdw.

ozgune avatar ozgune commented on May 18, 2024

I think we can fix this issue doing one or both of the following.

1/ During Create Foreign Table, check that we can access the underlying data file. Also check that we don't have an existing footer file. Either warn or error out in this case.
2/ Drop Foreign Table deletes the data and footer files. This way, a new create table statement doesn't access an existing footer file.

Ideally, we'd do both. Out of curiosity, @jberkus, how did you delete the c_statements.cstore data file?

from cstore_fdw.

jberkus avatar jberkus commented on May 18, 2024

rm -f c_statements.cstore

I'd prefer a WARN, not an error, because I can imagine cases where I deliberately want to re-attach an existing cstore file as a new, or even duplicate, foreign table. Currently I can have the same cstore file attached as several different foriegn table names, and I can see uses for that functionality, so I wouldn't want it to become impossible in the future.

For the DROP FOREIGN TABLE case, please see the discussion on that issue; it's complicated.

from cstore_fdw.

samay-sharma avatar samay-sharma commented on May 18, 2024

This issue has been resolved with cstore_fdw v1.1 release. cstore_fdw now errors out on CREATE if there is a problem accessing the specified file location.

Also, DROP FOREIGN TABLE now deletes the data and footer files, making it difficult to re-attach a previously created cstore file by mistake.

from cstore_fdw.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.