CREATE QUEUE v14
EDB Postgres Advanced Server includes extra syntax not offered by Oracle with the CREATE QUEUE SQL
command. You can use this syntax with DBMS_AQADM
.
Name
CREATE QUEUE
— Create a queue.
Synopsis
Use CREATE QUEUE
to define a new queue:
Where possible values for option_name
and the corresponding option_value
are:
Description
The CREATE QUEUE
command allows a database superuser or any user with the system-defined aq_administrator_role
privilege to create a queue in the current database.
If the name of the queue is schema-qualified, the queue is created in the specified schema. If the CREATE QUEUE
command doesn't include a schema, the queue is created in the current schema. You can create a queue only in the schema where the queue table resides. The name of the queue must be unique among queues in the same schema.
Use DROP QUEUE
to remove a queue.
Parameters
name
The name (optionally schema-qualified) of the queue to create.
queue_table_name
The name of the queue table with which this queue is associated.
option_name option_value
The name of any options to associate with the new queue and the corresponding value for the option. If the call to CREATE QUEUE
includes duplicate option names, the server returns an error. The following values are accepted:
TYPE