Comments (2)
The functions are run with the SECURITY DEFINER flag which means that they are run as whoever owns the function itself. This allows you to give execute permissions on the function so a role can run them and create replication tables but not have to give them blanket CREATE privileges on the entire database or schema.
Unfortunately that's not a flag that can just be turned on or off in a function. If you made your role the owner of the mimeo functions, then they would be the owner of the tables that are created. Not sure if that would work for you, but hope that at least clarifies how it works.
I'll look at seeing if maybe security definer is better to be off for the maker functions. I know it's definitely useful for the refresh functions since it allows roles to run refreshes but not have access to change the data in the destination tables themselves.
from mimeo.
Thank you for your prompt and detailed reply, this helped me out!
from mimeo.
Related Issues (13)
- 1.3.0 error when replicating view HOT 2
- Incremental replication on serial column not retrieving last record HOT 2
- was v1.3.4 retagged? HOT 4
- (Question) Many sources for one destination for logdel replication HOT 1
- Source table in Read-Only Streaming Replication Slave server HOT 13
- (Question) ERROR: »foo« is not a view HOT 5
- Snapshot UNLOGGED source tables HOT 1
- pg_jobmon and mimeo Cannot Coexist HOT 3
- Incremental replication via serial id HOT 1
- Snapshot replication with index recreation broken? HOT 5
- FUNCTION mimeo.create_index HOT 1
- Handle mixed-case, special characters and reserved words in object names HOT 1
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 mimeo.