Marwan Zidan
08/05/2025, 2:39 PMkapa.ai
08/05/2025, 2:40 PMorg.postgresql.util.PSQLException: ERROR: the pgaudit extension is not enabled, indicates that the pgaudit extension is not enabled on your Cloud SQL for PostgreSQL instance. The message also suggests checking the Cloud SQL PostgreSQL documentation for supported extensions. However, based on the knowledge sources provided, there is no specific information about enabling the pgaudit extension or handling this error within Airbyte documentation. The sources do mention that for certain features (like pg_cron), you need to ensure the extension is supported and enabled on your Cloud SQL instance, and they provide steps for enabling extensions like pg_cron by modifying database flags and parameter groups. The same general approach would apply for pgaudit if it is supported by your Cloud SQL version: you would need to enable it via the Cloud SQL instance settings. If you need to confirm whether pgaudit is supported and how to enable it, please refer to the [Cloud SQL PostgreSQL documentation for supported extensions](https://cloud.google.com/sql/docs/postgres/extensions). I'm sorry, but the knowledge sources do not contain specific instructions for enabling the pgaudit extension or resolving this error in Airbyte. For further troubleshooting, please consult the official Cloud SQL documentation or your database administrator<source>https://docs.airbyte.com/integrations/sources/postgres/cloud-sql-postgres#limitations--troubleshooting</source>.kapa.ai
08/05/2025, 2:40 PMkapa.ai
08/05/2025, 2:41 PMorg.postgresql.util.PSQLException: ERROR: the pgaudit extension is not enabled Hint: Please refer to Cloud SQL PostgreSQL documentation for supported extensions (https://cloud.google.com/sql/docs/postgres/extensions). means that your PostgreSQL database is expecting the pgaudit extension to be enabled, but it is currently not active on your Cloud SQL instance. The pgaudit extension provides detailed session and/or object audit logging in PostgreSQL. The error also suggests checking the Cloud SQL PostgreSQL documentation to verify if the pgaudit extension is supported and how to enable it. However, the knowledge sources provided do not contain specific information about the pgaudit extension or how to enable it in Cloud SQL or Airbyte. They do mention that for other extensions (like pg_cron), you need to ensure the extension is supported and enabled via your Cloud SQL instance settings, and similar steps would apply for pgaudit if it is supported<source>https://docs.airbyte.com/integrations/sources/postgres/cloud-sql-postgres#limitations--troubleshooting</source>. If you need to resolve this error, please refer to the [Cloud SQL PostgreSQL documentation for supported extensions](https://cloud.google.com/sql/docs/postgres/extensions) to check if pgaudit is available for your instance and how to enable it. If it is not supported, you may need to adjust your database or application configuration to avoid requiring this extension.Marwan Zidan
08/05/2025, 2:41 PMkapa.ai
08/05/2025, 2:41 PMkapa.ai
08/05/2025, 2:42 PMpgaudit extension causing issues with Airbyte after being enabled and then disabled. However, your experience suggests that after enabling and then disabling pgaudit, your PostgreSQL instance (on Cloud SQL) is now expecting the extension to be present, which leads to the error: org.postgresql.util.PSQLException: ERROR: the pgaudit extension is not enabled This kind of error typically means that some part of your database configuration, or possibly a database object (like a trigger, function, or role), is still referencing pgaudit even after it was disabled. This is not directly addressed in the Airbyte documentation or troubleshooting guides, but it is consistent with how PostgreSQL handles extensions: if any database object or configuration references an extension that is no longer enabled, errors like this can occur. The knowledge sources recommend checking the [Cloud SQL PostgreSQL documentation for supported extensions](https://cloud.google.com/sql/docs/postgres/extensions) for guidance on managing extensions, but do not provide Airbyte-specific steps for resolving this issue<source>https://docs.airbyte.com/integrations/sources/postgres/cloud-sql-postgres#limitations--troubleshooting</source>. Summary: - The error is not directly documented in Airbyte resources. - It likely results from lingering references to pgaudit after it was disabled. - You should review your database configuration and objects for any remaining references to pgaudit, and consult the Cloud SQL documentation for proper extension management. If you need further help, you may need to work with your database administrator or Google Cloud support, as this is a database-level issue rather than an Airbyte-specific one.