Stay organized with collections
Save and categorize content based on your preferences.
To disable pgAudit on an AlloyDB instance, set the value of the
alloydb.enable_pgaudit flag to off. You can change the
value of the alloydb.enable_pgaudit flag through the Google Cloud console
or the gcloud command.
When you disable the alloydb.enable_pgaudit flag, audit logging stops
immediately. However, it saves the applied pgAudit settings such as the pgaudit.log
parameter settings.
Additionally, run the DROP EXTENSION command by using a compatible
psql client to remove the extension state.
You disable an extension by reversing the procedure used to enable it.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-12 UTC."],[[["\u003cp\u003eDisabling pgAudit on an AlloyDB instance involves setting the \u003ccode\u003ealloydb.enable_pgaudit\u003c/code\u003e flag to \u003ccode\u003eoff\u003c/code\u003e through the Google Cloud console or the gcloud command.\u003c/p\u003e\n"],["\u003cp\u003eAudit logging ceases immediately upon disabling the \u003ccode\u003ealloydb.enable_pgaudit\u003c/code\u003e flag, while retaining the applied pgAudit settings.\u003c/p\u003e\n"],["\u003cp\u003eUpdating the \u003ccode\u003ealloydb.enable_pgaudit\u003c/code\u003e flag results in an automatic restart of the instance.\u003c/p\u003e\n"],["\u003cp\u003eRemoving the pgAudit extension state requires executing the \u003ccode\u003eDROP EXTENSION\u003c/code\u003e command via a compatible \u003ccode\u003epsql\u003c/code\u003e client.\u003c/p\u003e\n"],["\u003cp\u003eThe procedure to disable an extension is essentially the reverse of the steps taken to enable it.\u003c/p\u003e\n"]]],[],null,[]]