allow everybody to SELECT pgq and londiste tables
authorMarko Kreen <markokr@gmail.com>
Tue, 31 Jul 2007 09:59:20 +0000 (09:59 +0000)
committerMarko Kreen <markokr@gmail.com>
Tue, 31 Jul 2007 09:59:20 +0000 (09:59 +0000)
sql/londiste/Makefile
sql/londiste/structure/grants.sql [new file with mode: 0644]
sql/londiste/structure/tables.sql
sql/pgq/structure/grants.sql [new file with mode: 0644]
sql/pgq/structure/install.sql
sql/pgq/structure/tables.sql

index 0f4517b88b60417d3ab0cfc7357efd2400167690..2cc12bea5f42fe113515c4c671078761abdc1f30 100644 (file)
@@ -3,7 +3,7 @@ DATA_built = londiste.sql londiste.upgrade.sql
 DOCS = README.londiste
 
 FUNCS = $(wildcard functions/*.sql)
-SRCS = structure/tables.sql structure/types.sql $(FUNCS)
+SRCS = structure/tables.sql structure/grants.sql structure/types.sql $(FUNCS)
 
 REGRESS = londiste_install londiste_denytrigger londiste_provider londiste_subscriber
 REGRESS_OPTS = --load-language=plpythonu --load-language=plpgsql
diff --git a/sql/londiste/structure/grants.sql b/sql/londiste/structure/grants.sql
new file mode 100644 (file)
index 0000000..8ca9443
--- /dev/null
@@ -0,0 +1,7 @@
+
+grant usage on schema londiste to public;
+grant select on londiste.provider_table to public;
+grant select on londiste.completed to public;
+grant select on londiste.link to public;
+grant select on londiste.subscriber_table to public;
+
index b21b8ff18d10a0ea2aed6f68cb0abc6fd0c73cde..5b6b0d887d8400ad416d40dbd6975a1d887f3494 100644 (file)
@@ -1,7 +1,6 @@
 set default_with_oids = 'off';
 
 create schema londiste;
-grant usage on schema londiste to public;
 
 create table londiste.provider_table (
     nr                  serial not null,
diff --git a/sql/pgq/structure/grants.sql b/sql/pgq/structure/grants.sql
new file mode 100644 (file)
index 0000000..97a22cb
--- /dev/null
@@ -0,0 +1,10 @@
+
+grant usage on schema pgq to public;
+grant select on table pgq.consumer to public;
+grant select on table pgq.queue to public;
+grant select on table pgq.tick to public;
+grant select on table pgq.queue to public;
+grant select on table pgq.subscription to public;
+grant select on table pgq.event_template to public;
+grant select on table pgq.retry_queue to public;
+grant select on table pgq.failed_queue to public;
index b3c77cb68254e39747a852d194fa47275aaa1953..0dbc85ed4c4b866900b7a92fc8a029bdeaabef0b 100644 (file)
@@ -1,5 +1,6 @@
 
 \i structure/tables.sql
+\i structure/grants.sql
 \i structure/types.sql
 \i structure/func_internal.sql
 \i structure/func_public.sql
index 1810a26a07c833be3807cff4d9829379affcfb28..ff37a1fa362fd6ca30c65315f1d496616dcbae80 100644 (file)
 -- ----------------------------------------------------------------------
 
 set client_min_messages = 'warning';
+set default_with_oids = 'off';
 
 -- drop schema if exists pgq cascade;
 create schema pgq;
-grant usage on schema pgq to public;
 
 -- ----------------------------------------------------------------------
 -- Table: pgq.consumer