installFromExtension

Installs the pgmq extension in the PostgreSQL database if it is not already installed.

This method executes a SQL statement to create the pgmq extension. If the extension cannot be created, an error is thrown with a descriptive message.

Note: This method uses a suspend function, so it must be called from a coroutine or another suspend function.

Throws

if the pgmq extension cannot be created.