sql/pgq: tag pgq.batch_id_seq as dumpable (extension)
authorMarko Kreen <markokr@gmail.com>
Wed, 30 Oct 2013 23:35:05 +0000 (01:35 +0200)
committermartinko <gamato@users.sf.net>
Tue, 3 Dec 2013 14:17:51 +0000 (15:17 +0100)
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.

sql/pgq/expected/pgq_init_ext.out
sql/pgq/structure/ext_postproc.sql

index df0cc184932afebe62dd10011876a91b213046a4..814ed0566330ce7aefc498db7c582180c619ae84 100644 (file)
@@ -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)
 
index 5c945e87398859cc9a5f1721a034e0dd90cd1147..3e9cf00dbd95fd0a3acd201a3dd790f829b97751 100644 (file)
@@ -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', '');