Comments (7)
I have integrated the user types into clone_schema, so no additional extension or types need to be added.
from pg-clone-schema.
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.
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.
OK, I will make it a priority to get this fixed, probably today, since this is a showstopper for RDS.
from pg-clone-schema.
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.
Great, thank you 🙂
from pg-clone-schema.
thanks @MichaelDBA !
from pg-clone-schema.
Related Issues (20)
- Handle Special Characters in `tb.grantee` Column HOT 1
- Bug - Setting default value per column in create table statement HOT 2
- Bug - The triggers have to be cloned only after the eventual tables rows cloning HOT 1
- Enhancement - Simple select statements to compare source and target schema HOT 3
- Error when using in supabase HOT 17
- Error with citext and array in the same table HOT 2
- Materialized view with index causes error HOT 3
- Table permissions for public role invalidly assigned to non-existing "PUBLIC" role HOT 3
- Syntax error search path HOT 7
- Sequence owner is lost after second copy HOT 9
- TSVector Columns lead to multiple create statements for the same table HOT 12
- Duplicate sequences generated for SERIAL column tables HOT 1
- Redundant permissions granted to predefined roles HOT 1
- INSERT Problem with Identity columns HOT 1
- Problem execution clone schema HOT 5
- operator does not exist: public.ltree @> public.ltree HOT 2
- Error when udt is not in the source or public schema HOT 3
- Not all triggers cloned HOT 6
- Apply fix to pg_get_tabledef() HOT 1
- Owner with special characters
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pg-clone-schema.