GithubHelp home page GithubHelp logo

Comments (7)

IanMeyers avatar IanMeyers commented on August 23, 2024

Thanks for spotting this. It's now fixed in eb0d435.

from amazon-redshift-utils.

Jaskirat avatar Jaskirat commented on August 23, 2024

I am not sure how you tested this but when I do run the script that is generated like below

begin;
lock ...
...
commit;

vacuum delete only;

I am simply running each statement using a pg8000's connection.cursor() and cursor.execute(statement) i get an error like below

ProgrammingError: (u'ERROR', u'25001', u'VACUUM cannot run inside a transaction block', u'/home/rdsdb/padb/src/pg/src/backend/access/transam/xact.c', u'2541', u'PreventTransactionChain', u'', u'')

I am not sure how the utility would avoid this error.

from amazon-redshift-utils.

Jaskirat avatar Jaskirat commented on August 23, 2024

Also is the vacuum really needed if no update/delete operations are actually performed by this script? It only seems to insert/drop tables.

from amazon-redshift-utils.

IanMeyers avatar IanMeyers commented on August 23, 2024

I will look into the transaction issue you are reporting and get back to you. You can safely remove the VACUUM DELETE, especially if you have VACUUM processes running at some other time.

from amazon-redshift-utils.

IanMeyers avatar IanMeyers commented on August 23, 2024

So yes - have clarified that this vacuum is not required. Will remove in a subsequent patch.

from amazon-redshift-utils.

Jaskirat avatar Jaskirat commented on August 23, 2024

Great. Thanks!

from amazon-redshift-utils.

IanMeyers avatar IanMeyers commented on August 23, 2024

Fixed on 9424b6d

from amazon-redshift-utils.

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.