Giter VIP home page Giter VIP logo

Comments (5)

josevalim avatar josevalim commented on June 1, 2024

Reverting to type will cause other issues: #233

You have to make sure citext is installed on all schemas instead. Check out the issues tracker for previous issues. :)

from postgrex.

fiodorbaczynski avatar fiodorbaczynski commented on June 1, 2024

Thank you for such a quick response :)

You have to make sure citext is installed on all schemas instead. Check out the issues tracker for previous issues. :)

I'm not sure what you mean by that. There doesn't seem to be a way to install extensions on multiple schemas (for example ALTER EXTENSION citext SET SCHEMA public, foo; gives a syntax error). Are you suggesting the extension should be moved to pg_catalog?

I read some other issues, but none of the suggestions seemed to work / apply in my case. Sorry if this is a duplicate.

from postgrex.

josevalim avatar josevalim commented on June 1, 2024

I believe you have to create the extension again, but now in another schema. You can also have a schema with all extensions and then keep it in the search path too.

from postgrex.

fiodorbaczynski avatar fiodorbaczynski commented on June 1, 2024

Creating the extension again in a different schema fails [42710] ERROR: extension "citext" already exists. It seems extensions are global. I can't just move this extension to the foo schema, because it would cause the same issue for the user that works with the public schema.

The solution with all extensions in a different schema (added to search_path) seems to work.

For future reference, this seems to work:

CREATE SCHEMA extensions;
ALTER EXTENSION citext SET SCHEMA extensions;
ALTER USER foo SET search_path = foo, extensions;

Thank you. Should I close this issue?

from postgrex.

josevalim avatar josevalim commented on June 1, 2024

Thank you for following up with detailed steps for future reporters. It seems we are good now, thank you!

from postgrex.

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.