Skip to content
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

Text to centreline function can't be used in Materialized Views: "ERROR: cannot create temporary table within security-restricted operation" #1098

Open
radumas opened this issue Nov 13, 2024 · 0 comments

Comments

@radumas
Copy link
Member

radumas commented Nov 13, 2024

It's because it works by creating a temporary table and that's not allowed within a Mat View https://stackoverflow.com/a/51876069/4047679.

Possible fixes:

  1. (unclear) Create randomly generated tablenames and delete at the end of the function
  2. (unclear) Create a sequential tablename in a temp schema and delete and the end of the function
  3. (dangerous?) Drop the table if exists, and then create it. Could lead to race condition or interrupted work
  4. (lots of effort) Rewrite the function to be entirely... procedural code (no querying)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants