Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

role pgq_admin cannot bulk_insert_events #34

Open
florentx opened this issue May 26, 2014 · 0 comments
Open

role pgq_admin cannot bulk_insert_events #34

florentx opened this issue May 26, 2014 · 0 comments

Comments

@florentx
Copy link

I tried to use bulk_insert_events from the pgq library, but it does not work out of the box, even after applying the newgrants_pgq.sql permissions.

Since it is special command, I assume that only pgq_admin should be allowed to use it (or maybe pgq_writer as well). It can serve for writing tests for example, or in some special cases.

I worked around the issue by assigning additional grants to pgq_admin:

\i /usr/share/postgresql/9.3/contrib/newgrants_pgq.sql

GRANT INSERT ON pgq.event_template TO pgq_admin;
ALTER DEFAULT PRIVILEGES IN SCHEMA pgq GRANT USAGE ON SEQUENCES TO pgq_admin;
@florentx florentx changed the title role pgq_adming cannot bulk_insert_events role pgq_admin cannot bulk_insert_events May 26, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant