-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Temporary view _role_table_grants not dropping after function call #17
Comments
I have made this modification, that seems to work in my case: I have modified your script so that it has temporary tables instead of temporary views, and adding the "ON COMMIT DROP" statement on their creation. Then, I surround my alteration scripts with commits. In this way, it seems to work, albeit being slightly slower than using temporary views. |
@oscarfanchin Any chance you could share code? My SQL foo is not strong. I can't get past a |
Unrelated, I love Postgres, but views make me want to take a warm bath with a razor blade. We have to use them for Hasura, and in theory their are a great idea. In practice having to manually drop and recreate an ENTIRE view chain just so I can update a timestamp from (╯°□°)╯︵ ┻━┻ |
facing the same error as @AThilenius here -- help would be appreciated! |
I faced the same issue on Pg 16, even though my alter scripts were encapsulated in a Three possible remedies that I see:
I sent both 2) and 3) as a Pull Request with separate commits. Choose your poison. ;-) BTW, thanks for sharing your work, @rvkulikov! |
Have to wrap function body in transaction;
The text was updated successfully, but these errors were encountered: