I flag contrassegnati con Riavvii dell'istanza indicano che AlloyDB
riavvia un'istanza ogni volta che imposti, rimuovi o modifichi questo flag
sull'istanza. Il valore del flag persiste per l'istanza finché non lo modifichi di nuovo.
alloydb.enable_pgaudit
Tipo
boolean
Predefinito
off
Riavvii dell'istanza
Sì
Controlla la disponibilità dell'estensione pgaudit in un'istanza AlloyDB. Imposta il parametro su on e riavvia l'istanza. Quindi aggiungi l'estensione
pgaudit ai singoli database nell'istanza utilizzando il comando CREATE
EXTENSION.
L'estensione pgaudit fornisce log di controllo dettagliati di sessioni e oggetti utilizzando la funzionalità di logging standard fornita da PostgreSQL.
alloydb.log_throttling_window
Tipo
integer
Predefinito
0
Riavvii dell'istanza
No
Controlla se AlloyDB registra i messaggi di log duplicati
ricevuti durante un intervallo di tempo specificato.
Se impostato su un valore maggiore di 0, AlloyDB avvia un
timer di durata pari al valore impostato ogni volta che registra un messaggio di log. Se
AlloyDB riceve il messaggio di log identico prima della scadenza
del timer, non lo registra. Allo scadere del timer,
AlloyDB aggiunge un conteggio dei messaggi ignorati alla
successiva occorrenza dello stesso messaggio di log registrato.
Se è impostato su 0, AlloyDB registra tutti i messaggi di log duplicati.
alloydb.promote_cancel_to_terminate
Tipo
boolean
Predefinito
off
Riavvii dell'istanza
No
Se impostato su true, tutte le richieste di annullamento delle query dovute a problemi quali timeout di blocco, timeout delle istruzioni e conflitti di recupero (replay) riscontrati da AlloyDB vengono promosse a richieste di terminazione forzata del backend.
Promuovendo le richieste di annullamento, AlloyDB contribuisce a impedire che i backend bloccati blocchino la riproduzione dei log e altri backend.
alloydb.pg_shadow_select_role
Tipo
string
Predefinito
Una stringa vuota
Riavvii dell'istanza
No
Nome del ruolo PostgreSQL da utilizzare per concedere l'autorizzazione per eseguire query sulla vista pg_shadow.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-09-04 UTC."],[[["\u003cp\u003eThis page details the database flags specific to AlloyDB for PostgreSQL, which are used to manage unique service features, and a list of all database flags can be found in the Supported database flags page.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ealloydb.enable_pgaudit\u003c/code\u003e flag controls the availability of the \u003ccode\u003epgaudit\u003c/code\u003e extension, requires instance restarts when modified, and should be set in coordination with the PostgreSQL \u003ccode\u003elogging_collector\u003c/code\u003e parameter to avoid audit log loss.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ealloydb.log_throttling_window\u003c/code\u003e flag, which does not require instance restarts, determines whether duplicate log messages are recorded within a specified time window.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ealloydb.promote_cancel_to_terminate\u003c/code\u003e flag, when set to \u003ccode\u003etrue\u003c/code\u003e, transforms query cancellation requests into forced backend termination requests to prevent issues like stuck backends, and does not require an instance restart.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ealloydb.pg_shadow_select_role\u003c/code\u003e flag, which does not require an instance restart, defines the name of the PostgreSQL role that is granted permission to query the \u003ccode\u003epg_shadow\u003c/code\u003e view.\u003c/p\u003e\n"]]],[],null,["# AlloyDB flags\n\nSelect a documentation version:\n\n\n15.7.0keyboard_arrow_down\n\n- [Current (16.8.0)](/alloydb/omni/current/docs/reference/alloydb-flags)\n- [16.8.0](/alloydb/omni/16.8.0/docs/reference/alloydb-flags)\n- [16.3.0](/alloydb/omni/16.3.0/docs/reference/alloydb-flags)\n- [15.12.0](/alloydb/omni/15.12.0/docs/reference/alloydb-flags)\n- [15.7.1](/alloydb/omni/15.7.1/docs/reference/alloydb-flags)\n- [15.7.0](/alloydb/omni/15.7.0/docs/reference/alloydb-flags)\n\n\u003cbr /\u003e\n\nThis page describes the database flags that AlloyDB for PostgreSQL uses to enable and manage various service features unique to AlloyDB. For a list of all database flags that AlloyDB supports, see [Supported database\nflags](/alloydb/omni/15.7.0/docs/reference/database-flags).\n\n\u003cbr /\u003e\n\nFlags marked with **Instance restarts** mean that AlloyDB\nrestarts an instance whenever you set, remove, or modify this flag on that\ninstance. The flag's value persists for the instance until you modify it again.\n\n### alloydb.enable_pgaudit\n\nControls the availability of the `pgaudit` extension in an AlloyDB\ninstance. Set the parameter to `on` and restart the instance. Then add the\n`pgaudit` extension to individual databases in the instance by using the `CREATE\nEXTENSION` command.\n\nThe [`pgaudit`](https://www.pgaudit.org/) extension provides detailed session\nand object audit logging using the standard logging facility provided by\nPostgreSQL.\n| **Warning:** In AlloyDB Omni only, enabling this extension and the PostgreSQL `logging_collector` parameter might result in loss of audit logs. To enable the PostgreSQL and audit logs, set `logging_collector` to `off` and `alloydb.enable_pgaudit` to `true`. To enable the PostgreSQL log, set `logging_collector` to `on` and `allobydb.enable_pgaudit` to `false`.\n\n### alloydb.log_throttling_window\n\nControls whether AlloyDB records duplicate log messages\nreceived during a specified time window.\n\nIf set to a value greater than `0`, then AlloyDB starts a\ntimer that many seconds long whenever it records a log message. If\nAlloyDB receives the identical log message before the timer\nexpires, it does not record the message. After the timer expires,\nAlloyDB appends a count of any skipped messages to the\nnext occurrence of the same log message that it records.\n\nIf set to `0`, then AlloyDB records all duplicate log\nmessages.\n\n### alloydb.promote_cancel_to_terminate\n\nIf set to `true`, then any query cancellation requests due to issues such as lock timeouts, statement timeouts, and recovery (replay) conflicts that AlloyDB encounters, are promoted to forced backend termination requests.\n\nBy promoting the cancellation requests, AlloyDB helps prevent stuck backends from blocking log replay and other backends.\n\n### alloydb.pg_shadow_select_role\n\nName of the PostgreSQL role that is to be used to grant permission to query the\n`pg_shadow` view."]]