Feature Request: Consider allowing relocation to a different schema during CREATE EXTENSION #1013
Replies: 3 comments 3 replies
-
|
A simple workaround is to create |
Beta Was this translation helpful? Give feedback.
-
|
Hi, I'm following up to ask if the pg_duckdb team has had a chance to consider this request. It would be great for our users @planetscale, and it would also allow pg_duckdb to be a good citizen in the Postgres extension ecosystem. |
Beta Was this translation helpful? Give feedback.
-
|
Just noticing this discussion now but I opened a PR for this. I agree this would be nice to configure. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Why do you want this feature?
In offering both
pg_duckdbandtimescaledbon PlanetScale's Postgres offering, these extensions, by default, cannot be created at the same time as they both contain a function namedtime_bucket.Timescale is able to be relocated to a different schema during CREATE EXTENSION, but pg_duckdb is not:
We're evaluating how to handle this and I think our preference would be to tell users to put both extensions into separate schemas.
I see in
pg_duckdb's .control file that it's bothrelocatable=falseandschema=publicand it's this combination that prevents it from being relocated (third bullet point here: https://www.postgresql.org/docs/current/extend-extensions.html#EXTEND-EXTENSIONS-RELOCATION).I'm sure this was intentional, however I don't know if it would be as easy as removing the
schema=publicline.Thanks for your consideration.
Beta Was this translation helpful? Give feedback.
All reactions