\set ECHO none
 create_queue 
--------------
            1
(1 row)

select array_length(extconfig, 1) from pg_catalog.pg_extension where extname = 'pgq';
 array_length 
--------------
            7
(1 row)

select pgq.create_queue('testqueue2');
 create_queue 
--------------
            1
(1 row)

--drop extension pgq; -- will fail
select pgq.drop_queue('testqueue2');
 drop_queue 
------------
          1
(1 row)

select pgq.drop_queue('testqueue1');
 drop_queue 
------------
          1
(1 row)

-- drop extension
drop extension pgq;
-- create clean schema
create extension pgq;
select array_length(extconfig, 1) from pg_catalog.pg_extension where extname = 'pgq';
 array_length 
--------------
            7
(1 row)

