인스턴스 다시 시작으로 표시된 플래그는 해당 인스턴스에서 이 플래그를 설정, 삭제 또는 수정할 때마다 AlloyDB가 인스턴스를 다시 시작한다는 의미입니다. 플래그의 값은 다시 수정할 때까지 인스턴스에 유지됩니다.
alloydb.enable_pgaudit
유형
boolean
기본값
off
인스턴스 재시작
예
AlloyDB 인스턴스에서 pgaudit 확장 프로그램의 사용 가능 여부를 제어합니다. 매개변수를 on로 설정하고 인스턴스를 다시 시작합니다. 그런 다음 CREATE
EXTENSION 명령어를 사용하여 인스턴스의 개별 데이터베이스에 pgaudit 확장 프로그램을 추가합니다.
pgaudit 확장 프로그램은 PostgreSQL에서 제공하는 표준 로깅 기능을 사용하여 자세한 세션 및 객체 감사 로깅을 제공합니다.
alloydb.log_throttling_window
유형
integer
기본값
0
인스턴스 재시작
아니요
지정된 기간 동안 수신된 중복 로그 메시지를 AlloyDB에서 기록할지 여부를 제어합니다.
0보다 큰 값으로 설정하면 AlloyDB는 로그 메시지를 기록할 때마다 해당 초 길이의 타이머를 시작합니다. 타이머가 만료되기 전에 AlloyDB가 동일한 로그 메시지를 수신하면 메시지를 기록하지 않습니다. 타이머가 만료되면 AlloyDB는 기록하는 동일한 로그 메시지의 다음 발생에 건너뛴 메시지 수를 추가합니다.
0로 설정하면 AlloyDB는 모든 중복 로그 메시지를 기록합니다.
alloydb.promote_cancel_to_terminate
유형
boolean
기본값
off
인스턴스 재시작
아니요
true로 설정하면 AlloyDB에서 발생하는 잠금 시간 초과, 문 시간 초과, 복구 (재생) 충돌과 같은 문제로 인한 쿼리 취소 요청이 강제 백엔드 종료 요청으로 승격됩니다.
취소 요청을 승격함으로써 AlloyDB는 중단된 백엔드가 로그 재생 및 기타 백엔드를 차단하는 것을 방지합니다.
alloydb.pg_shadow_select_role
유형
string
기본값
빈 문자열
인스턴스 재시작
아니요
pg_shadow 뷰를 쿼리할 권한을 부여하는 데 사용할 PostgreSQL 역할의 이름입니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 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."]]