summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Kreen2013-10-30 23:35:05 +0000
committermartinko2013-12-03 14:17:51 +0000
commit287a7c3a2e112d0219b0b6fb08175cd6a7afda81 (patch)
treee002dd99fc926b090e028773bf05c9005589c51a
parent6a83bd269e59e1b1564d31ad9610cdf6af62d4fa (diff)
sql/pgq: tag pgq.batch_id_seq as dumpable (extension)
That case was broken in old 9.1 releases, fixed since 9.1.7. The sequence will be owned by extension and without tagging it will not be dumped in data dump.
-rw-r--r--sql/pgq/expected/pgq_init_ext.out4
-rw-r--r--sql/pgq/structure/ext_postproc.sql4
2 files changed, 4 insertions, 4 deletions
diff --git a/sql/pgq/expected/pgq_init_ext.out b/sql/pgq/expected/pgq_init_ext.out
index df0cc184..814ed056 100644
--- a/sql/pgq/expected/pgq_init_ext.out
+++ b/sql/pgq/expected/pgq_init_ext.out
@@ -15,7 +15,7 @@ create extension pgq from 'unpackaged';
select array_length(extconfig, 1) from pg_catalog.pg_extension where extname = 'pgq';
array_length
--------------
- 6
+ 7
(1 row)
select pgq.create_queue('testqueue2');
@@ -44,6 +44,6 @@ create extension pgq;
select array_length(extconfig, 1) from pg_catalog.pg_extension where extname = 'pgq';
array_length
--------------
- 6
+ 7
(1 row)
diff --git a/sql/pgq/structure/ext_postproc.sql b/sql/pgq/structure/ext_postproc.sql
index 5c945e87..3e9cf00d 100644
--- a/sql/pgq/structure/ext_postproc.sql
+++ b/sql/pgq/structure/ext_postproc.sql
@@ -8,6 +8,6 @@ SELECT pg_catalog.pg_extension_config_dump('pgq.subscription', '');
SELECT pg_catalog.pg_extension_config_dump('pgq.event_template', '');
SELECT pg_catalog.pg_extension_config_dump('pgq.retry_queue', '');
----- pg_dump is broken and cannot handle dumpable sequences
--- SELECT pg_catalog.pg_extension_config_dump('pgq.batch_id_seq', '');
+-- This needs pg_dump 9.1.7+
+SELECT pg_catalog.pg_extension_config_dump('pgq.batch_id_seq', '');