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.
select array_length(extconfig, 1) from pg_catalog.pg_extension where extname = 'pgq';
array_length
--------------
- 6
+ 7
(1 row)
select pgq.create_queue('testqueue2');
select array_length(extconfig, 1) from pg_catalog.pg_extension where extname = 'pgq';
array_length
--------------
- 6
+ 7
(1 row)
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', '');