



If the attrep_intercept_ddl stored procedure is not being created in the default If you are logged in with a NoPriv account, log out of the NoPriv account and log in with an account that has the rds_superuser role assigned to it. If (tg_tag='CREATE TABLE' or tg_tag='ALTER TABLE' or tg_tag='DROP TABLE') thenĭefault,current_timestamp,current_user,cast(TXID_CURRENT()as varchar(16)),tg_tag,0,'',current_schema,_qry For now, holds the current_schemaĬ_ddlqry text - The DDL query associated with the current DDL eventĪttrep_intercept_ddl by running the following command: CREATE OR REPLACE FUNCTION. Ensure that the schema exists and is accessible by the NoPriv account.Ĭreate the table attrep_ddl_audit by running the following command:Ĭ_user varchar(64), - Informational: current_userĬ_txn varchar(16), - Informational: current transactionĬ_tag varchar(24), - Either 'CREATE TABLE' or 'ALTER TABLE' or 'DROP TABLE'Ĭ_oid integer, - For future use - TG_OBJECTIDĬ_name varchar(64), - For future use - TG_OBJECTNAMEĬ_schema varchar(64), - For future use - TG_SCHEMANAME.

If you prefer not to use the master user account, the account you wish to use must have the rds_superuser role and the rds_replication role. Using an account without the "rds_superuser" role.
