Comments (7)
Thanks for spotting this. It's now fixed in eb0d435.
from amazon-redshift-utils.
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.
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.
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.
So yes - have clarified that this vacuum is not required. Will remove in a subsequent patch.
from amazon-redshift-utils.
Great. Thanks!
from amazon-redshift-utils.
Fixed on 9424b6d
from amazon-redshift-utils.
Related Issues (20)
- v_generate_tbl_ddl : Invalid operation: value too long for type character varying(798) HOT 1
- permission denied for relation stv_tbl_perm HOT 4
- Revoking privileges from RBAC roles using v_generate_user_grant_revoke_ddl
- v_get_stored_proc_params.sql invalid WHERE prolang = 100356 HOT 1
- v_generate_user_grant_revoke_ddl returns "ERROR: value too long for type character varying(128)" HOT 1
- v_generate_tbl_ddl creates columns in the incorrect order
- Hy
- Generate DDL for Data Masking Schemas when selecting tables from awslabs view v_generate_tbl_ddl
- Support local config file in WorkloadManagementScheduler
- v_generate_user_grant_revoke_ddl.sql does not include external tables and external schemas.
- MultipleTableRestoreUtility Fails With InvalidClusterState Error When Restoring Multiple Tables From A Snapshot
- DROP permissions tab
- v_generate_tbl_ddl incorrectly pulls comments on tables with same name in different schema
- v_generate_user_grant_revoke_ddl creates invalid statement.
- v_generate_user_grant_revoke_ddl.sql generates invalid SQL when datashares are used
- v_generate_udf_ddl.sql how can I get complete datatype of RETURN?
- Python requirements fail to install on Python 3.10.12
- SystemTablePersistence - Value too long for character type error
- v_generate_external_tbl_ddl generates invalid ddl
- permission denied for relation stv_tbl_perm
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amazon-redshift-utils.