Coder Social home page Coder Social logo

Comments (7)

MichaelDBA avatar MichaelDBA commented on August 31, 2024 3

I have integrated the user types into clone_schema, so no additional extension or types need to be added.

from pg-clone-schema.

MichaelDBA avatar MichaelDBA commented on August 31, 2024

If you install pg_permissions extension (https://github.com/cybertec-postgresql/pg_permission), that will fix it. In the meantime, I am working on using SQL to get permissions without the usage of that extension.

I have updated the README for this project with instructions on how to install pg_permissions extension.

from pg-clone-schema.

EspadaV8 avatar EspadaV8 commented on August 31, 2024

Ah, thanks. Unfortunately we're using AWS RDS so we won't be able to install that extension. For now I think we can just remove the permission parts (they weren't in the function before so I don't think we'll miss them 😄)

from pg-clone-schema.

MichaelDBA avatar MichaelDBA commented on August 31, 2024

OK, I will make it a priority to get this fixed, probably today, since this is a showstopper for RDS.

from pg-clone-schema.

MichaelDBA avatar MichaelDBA commented on August 31, 2024

Just create these 2 TYPE definitions and then it should work:

CREATE TYPE perm_type AS ENUM (
   'SELECT',
   'INSERT',
   'UPDATE',
   'DELETE',
   'TRUNCATE',
   'REFERENCES',
   'TRIGGER',
   'USAGE',
   'CREATE',
   'EXECUTE',
   'CONNECT',
   'TEMPORARY'
);

CREATE TYPE obj_type AS ENUM (
   'TABLE',
   'VIEW',
   'COLUMN',
   'SEQUENCE',
   'FUNCTION',
   'SCHEMA',
   'DATABASE'
);

from pg-clone-schema.

EspadaV8 avatar EspadaV8 commented on August 31, 2024

Great, thank you 🙂

from pg-clone-schema.

denishpatel avatar denishpatel commented on August 31, 2024

thanks @MichaelDBA !

from pg-clone-schema.

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.