{"record":{"id":"0f89f67620306f06","repo":"ruvnet/ruflo","slug":"could-not-create-pgvector-extension-may-require-s","errorCode":null,"errorMessage":"Could not create pgvector extension (may require superuser privileges)","messagePattern":"Could not create pgvector extension \\(may require superuser privileges\\)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/@claude-flow/plugins/src/integrations/ruvector/ruvector-bridge.ts","lineNumber":1843,"sourceCode":"\n  /**\n   * Ensure the plugin is initialized.\n   */\n  private ensureInitialized(): void {\n    if (!this.vectorOps || !this.connectionManager) {\n      throw new Error('RuVector Bridge not initialized. Call initialize() first.');\n    }\n  }\n\n  /**\n   * Ensure pgvector extension is installed.\n   */\n  private async ensureExtension(): Promise<void> {\n    try {\n      await this.connectionManager!.query(\"CREATE EXTENSION IF NOT EXISTS vector\");\n      this.logger.debug('pgvector extension ensured');\n    } catch (error) {\n      this.logger.warn('Could not create pgvector extension (may require superuser privileges)', error);\n    }\n  }\n\n  /**\n   * Forward connection manager events to plugin event bus.\n   */\n  private forwardConnectionEvents(): void {\n    const events: RuVectorEventType[] = [\n      'connection:open',\n      'connection:close',\n      'connection:error',\n      'connection:pool_acquired',\n      'connection:pool_released',\n      'query:start',\n      'query:complete',\n      'query:error',\n      'query:slow',\n    ];","sourceCodeStart":1825,"sourceCodeEnd":1861,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/@claude-flow/plugins/src/integrations/ruvector/ruvector-bridge.ts#L1825-L1861","documentation":"Log warning in ensureExtension: the 'CREATE EXTENSION IF NOT EXISTS vector' statement failed — typically because the DB user lacks superuser privileges; the bridge proceeds and pgvector-dependent operations will fail later if the extension truly is absent.","triggerScenarios":"Thrown at v3/@claude-flow/plugins/src/integrations/ruvector/ruvector-bridge.ts:1843 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run the migration with a database role that has superuser/privilege to create extensions, or pre-create the pgvector extension manually."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fa13ee4ad60ac2090b1480656eb233521790d640","analyzedAt":"2026-08-18T21:34:22.708Z","contentChangedAt":"2026-08-18T21:34:22.708Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}