published on Saturday, Jun 20, 2026 by Pulumi
published on Saturday, Jun 20, 2026 by Pulumi
Provides a virtual resource that can be used to change advanced configuration
options for a DigitalOcean managed PostgreSQL Advanced Edition (advancedPg)
database cluster.
Note Advanced PostgreSQL configurations are only removed from state when destroyed. The remote configuration is not unset.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as digitalocean from "@pulumi/digitalocean";
const exampleDatabaseCluster = new digitalocean.DatabaseCluster("example", {
name: "example-advanced-postgresql-cluster",
engine: "advanced_pg",
version: "16",
size: "gd-2vcpu-8gb-intel",
region: digitalocean.Region.NYC1,
nodeCount: 1,
});
const example = new digitalocean.DatabaseAdvancedPostgresqlConfig("example", {
clusterId: exampleDatabaseCluster.id,
pgParameters: {
timezone: "UTC",
work_mem: "4096",
},
});
import pulumi
import pulumi_digitalocean as digitalocean
example_database_cluster = digitalocean.DatabaseCluster("example",
name="example-advanced-postgresql-cluster",
engine="advanced_pg",
version="16",
size="gd-2vcpu-8gb-intel",
region=digitalocean.Region.NYC1,
node_count=1)
example = digitalocean.DatabaseAdvancedPostgresqlConfig("example",
cluster_id=example_database_cluster.id,
pg_parameters={
"timezone": "UTC",
"work_mem": "4096",
})
package main
import (
"github.com/pulumi/pulumi-digitalocean/sdk/v4/go/digitalocean"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleDatabaseCluster, err := digitalocean.NewDatabaseCluster(ctx, "example", &digitalocean.DatabaseClusterArgs{
Name: pulumi.String("example-advanced-postgresql-cluster"),
Engine: pulumi.String("advanced_pg"),
Version: pulumi.String("16"),
Size: pulumi.String("gd-2vcpu-8gb-intel"),
Region: pulumi.String(digitalocean.RegionNYC1),
NodeCount: pulumi.Int(1),
})
if err != nil {
return err
}
_, err = digitalocean.NewDatabaseAdvancedPostgresqlConfig(ctx, "example", &digitalocean.DatabaseAdvancedPostgresqlConfigArgs{
ClusterId: exampleDatabaseCluster.ID(),
PgParameters: pulumi.StringMap{
"timezone": pulumi.String("UTC"),
"work_mem": pulumi.String("4096"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using DigitalOcean = Pulumi.DigitalOcean;
return await Deployment.RunAsync(() =>
{
var exampleDatabaseCluster = new DigitalOcean.DatabaseCluster("example", new()
{
Name = "example-advanced-postgresql-cluster",
Engine = "advanced_pg",
Version = "16",
Size = "gd-2vcpu-8gb-intel",
Region = DigitalOcean.Region.NYC1,
NodeCount = 1,
});
var example = new DigitalOcean.DatabaseAdvancedPostgresqlConfig("example", new()
{
ClusterId = exampleDatabaseCluster.Id,
PgParameters =
{
{ "timezone", "UTC" },
{ "work_mem", "4096" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.digitalocean.DatabaseCluster;
import com.pulumi.digitalocean.DatabaseClusterArgs;
import com.pulumi.digitalocean.DatabaseAdvancedPostgresqlConfig;
import com.pulumi.digitalocean.DatabaseAdvancedPostgresqlConfigArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleDatabaseCluster = new DatabaseCluster("exampleDatabaseCluster", DatabaseClusterArgs.builder()
.name("example-advanced-postgresql-cluster")
.engine("advanced_pg")
.version("16")
.size("gd-2vcpu-8gb-intel")
.region("nyc1")
.nodeCount(1)
.build());
var example = new DatabaseAdvancedPostgresqlConfig("example", DatabaseAdvancedPostgresqlConfigArgs.builder()
.clusterId(exampleDatabaseCluster.id())
.pgParameters(Map.ofEntries(
Map.entry("timezone", "UTC"),
Map.entry("work_mem", "4096")
))
.build());
}
}
resources:
example:
type: digitalocean:DatabaseAdvancedPostgresqlConfig
properties:
clusterId: ${exampleDatabaseCluster.id}
pgParameters:
timezone: UTC
work_mem: '4096'
exampleDatabaseCluster:
type: digitalocean:DatabaseCluster
name: example
properties:
name: example-advanced-postgresql-cluster
engine: advanced_pg
version: '16'
size: gd-2vcpu-8gb-intel
region: nyc1
nodeCount: 1
pulumi {
required_providers {
digitalocean = {
source = "pulumi/digitalocean"
}
}
}
resource "digitalocean_databaseadvancedpostgresqlconfig" "example" {
cluster_id = digitalocean_databasecluster.example.id
pg_parameters = {
"timezone" = "UTC"
"work_mem" = "4096"
}
}
resource "digitalocean_databasecluster" "example" {
name = "example-advanced-postgresql-cluster"
engine = "advanced_pg"
version = "16"
size = "gd-2vcpu-8gb-intel"
region = "nyc1"
node_count = 1
}
Supported pgParameters
The following PostgreSQL GUC parameters can be set on advancedPg clusters. Default values and restart requirements are returned by the DigitalOcean API and may vary by cluster size.
applicationName- (Optional) Sets the application name to be reported in statistics and logs.arrayNulls- (Optional) Enables input of NULL elements in arrays. Default:on.authenticationTimeout- (Optional) Sets the maximum allowed time to complete client authentication. Default:60.autovacuum- (Optional) Starts the autovacuum subprocess. Default:on.autovacuumAnalyzeScaleFactor- (Optional) Number of tuple inserts, updates, or deletes prior to analyze as a fraction of reltuples. Default:0.1.autovacuumAnalyzeThreshold- (Optional) Minimum number of tuple inserts, updates, or deletes prior to analyze. Default:50.autovacuumFreezeMaxAge- (Optional) Age at which to autovacuum a table to prevent transaction ID wraparound. Default:200000000. Requires restart.autovacuumMultixactFreezeMaxAge- (Optional) Multixact age at which to autovacuum a table to prevent multixact wraparound. Default:400000000. Requires restart.autovacuumNaptime- (Optional) Time to sleep between autovacuum runs. Default:60.autovacuumVacuumCostDelay- (Optional) Vacuum cost delay in milliseconds, for autovacuum. Default:2.autovacuumVacuumCostLimit- (Optional) Vacuum cost amount available before napping, for autovacuum. Default:-1.autovacuumVacuumInsertScaleFactor- (Optional) Number of tuple inserts prior to vacuum as a fraction of reltuples. Default:0.2.autovacuumVacuumInsertThreshold- (Optional) Minimum number of tuple inserts prior to vacuum. Default:1000.autovacuumVacuumScaleFactor- (Optional) Number of tuple updates or deletes prior to vacuum as a fraction of reltuples. Default:0.2.autovacuumVacuumThreshold- (Optional) Minimum number of tuple updates or deletes prior to vacuum. Default:50.backendFlushAfter- (Optional) Number of pages after which previously performed writes are flushed to disk. Default:0.backslashQuote- (Optional) Sets whether “'” is allowed in string literals. Default:safeEncoding.bgwriterDelay- (Optional) Background writer sleep time between rounds. Default:200.bgwriterFlushAfter- (Optional) Number of pages after which previously performed writes are flushed to disk. Default:64.bgwriterLruMaxpages- (Optional) Background writer maximum number of LRU pages to flush per round. Default:100.bgwriterLruMultiplier- (Optional) Multiple of the average buffer usage to free per round. Default:2.byteaOutput- (Optional) Sets the output format for bytea. Default:hex.checkFunctionBodies- (Optional) Check routine bodies during CREATE FUNCTION and CREATE PROCEDURE. Default:on.checkpointCompletionTarget- (Optional) Time spent flushing dirty buffers during checkpoint, as fraction of checkpoint interval. Default:0.9.checkpointFlushAfter- (Optional) Number of pages after which previously performed writes are flushed to disk. Default:32.checkpointTimeout- (Optional) Sets the maximum time between automatic WAL checkpoints. Default:300.checkpointWarning- (Optional) Sets the maximum time before warning if checkpoints triggered by WAL volume happen too frequently. Default:30.clientConnectionCheckInterval- (Optional) Sets the time interval between checks for disconnection while running queries. Default:0.clientEncoding- (Optional) Sets the client’s character set encoding. Default:SQL_ASCII.clientMinMessages- (Optional) Sets the message levels that are sent to the client. Default:notice.commitDelay- (Optional) Sets the delay in microseconds between transaction commit and flushing WAL to disk. Default:0.commitSiblings- (Optional) Sets the minimum number of concurrent open transactions required before performing “commitDelay”. Default:5.computeQueryId- (Optional) Enables in-core computation of query identifiers. Default:auto.constraintExclusion- (Optional) Enables the planner to use constraints to optimize queries. Default:partition.cpuIndexTupleCost- (Optional) Sets the planner’s estimate of the cost of processing each index entry during an index scan. Default:0.005.cpuOperatorCost- (Optional) Sets the planner’s estimate of the cost of processing each operator or function call. Default:0.0025.cpuTupleCost- (Optional) Sets the planner’s estimate of the cost of processing each tuple (row). Default:0.01.createroleSelfGrant- (Optional) Sets whether a CREATEROLE user automatically grants the role to themselves, and with which options.cursorTupleFraction- (Optional) Sets the planner’s estimate of the fraction of a cursor’s rows that will be retrieved. Default:0.1.datestyle- (Optional) Sets the display format for date and time values. Default:ISO, MDY.deadlockTimeout- (Optional) Sets the time to wait on a lock before checking for deadlock. Default:1000.debugPrettyPrint- (Optional) Indents parse and plan tree displays. Default:on.debugPrintParse- (Optional) Logs each query’s parse tree. Default:off.debugPrintPlan- (Optional) Logs each query’s execution plan. Default:off.debugPrintRewritten- (Optional) Logs each query’s rewritten parse tree. Default:off.defaultStatisticsTarget- (Optional) Sets the default statistics target. Default:100.defaultTablespace- (Optional) Sets the default tablespace to create tables and indexes in.defaultToastCompression- (Optional) Sets the default compression method for compressible values. Default:pglz.defaultTransactionDeferrable- (Optional) Sets the default deferrable status of new transactions. Default:off.defaultTransactionIsolation- (Optional) Sets the transaction isolation level of each new transaction. Default:read committed.defaultTransactionReadOnly- (Optional) Sets the default read-only status of new transactions. Default:off.effectiveIoConcurrency- (Optional) Number of simultaneous requests that can be handled efficiently by the disk subsystem. Default:16.enableAsyncAppend- (Optional) Enables the planner’s use of async append plans. Default:on.enableBitmapscan- (Optional) Enables the planner’s use of bitmap-scan plans. Default:on.enableGathermerge- (Optional) Enables the planner’s use of gather merge plans. Default:on.enableGroupByReordering- (Optional) Enables reordering of GROUP BY keys. Default:on.enableHashagg- (Optional) Enables the planner’s use of hashed aggregation plans. Default:on.enableHashjoin- (Optional) Enables the planner’s use of hash join plans. Default:on.enableIncrementalSort- (Optional) Enables the planner’s use of incremental sort steps. Default:on.enableIndexonlyscan- (Optional) Enables the planner’s use of index-only-scan plans. Default:on.enableIndexscan- (Optional) Enables the planner’s use of index-scan plans. Default:on.enableMaterial- (Optional) Enables the planner’s use of materialization. Default:on.enableMemoize- (Optional) Enables the planner’s use of memoization. Default:on.enableMergejoin- (Optional) Enables the planner’s use of merge join plans. Default:on.enableNestloop- (Optional) Enables the planner’s use of nested-loop join plans. Default:on.enableParallelAppend- (Optional) Enables the planner’s use of parallel append plans. Default:on.enableParallelHash- (Optional) Enables the planner’s use of parallel hash plans. Default:on.enablePartitionPruning- (Optional) Enables plan-time and execution-time partition pruning. Default:on.enablePartitionwiseAggregate- (Optional) Enables partitionwise aggregation and grouping. Default:off.enablePartitionwiseJoin- (Optional) Enables partitionwise join. Default:off.enablePresortedAggregate- (Optional) Enables the planner’s ability to produce plans that provide presorted input for ORDER BY / DISTINCT aggregate functions. Default:on.enableSeqscan- (Optional) Enables the planner’s use of sequential-scan plans. Default:on.enableSort- (Optional) Enables the planner’s use of explicit sort steps. Default:on.enableTidscan- (Optional) Enables the planner’s use of TID scan plans. Default:on.escapeStringWarning- (Optional) Warn about backslash escapes in ordinary string literals. Default:on.eventTriggers- (Optional) Enables event triggers. Default:on.extraFloatDigits- (Optional) Sets the number of digits displayed for floating-point values. Default:1.fromCollapseLimit- (Optional) Sets the FROM-list size beyond which subqueries are not collapsed. Default:8.geqo- (Optional) Enables genetic query optimization. Default:on.geqoEffort- (Optional) GEQO: effort is used to set the default for other GEQO parameters. Default:5.geqoGenerations- (Optional) GEQO: number of iterations of the algorithm. Default:0.geqoPoolSize- (Optional) GEQO: number of individuals in the population. Default:0.geqoSeed- (Optional) GEQO: seed for random path selection. Default:0.geqoSelectionBias- (Optional) GEQO: selective pressure within the population. Default:2.geqoThreshold- (Optional) Sets the threshold of FROM items beyond which GEQO is used. Default:12.ginFuzzySearchLimit- (Optional) Sets the maximum allowed result for exact search by GIN. Default:0.ginPendingListLimit- (Optional) Sets the maximum size of the pending list for GIN index. Default:4096.gssAcceptDelegation- (Optional) Sets whether GSSAPI delegation should be accepted from the client. Default:off.hashMemMultiplier- (Optional) Multiple of “workMem” to use for hash tables. Default:2.icuValidationLevel- (Optional) Log level for reporting invalid ICU locale strings. Default:warning.idleInTransactionSessionTimeout- (Optional) Sets the maximum allowed idle time between queries, when in a transaction. Default:0.idleSessionTimeout- (Optional) Sets the maximum allowed idle time between queries, when not in a transaction. Default:0.intervalstyle- (Optional) Sets the display format for interval values. Default:postgres.ioCombineLimit- (Optional) Limit on the size of data reads and writes. Default:16.jit- (Optional) Allow JIT compilation. Default:on.jitAboveCost- (Optional) Perform JIT compilation if query is more expensive. Default:100000.jitInlineAboveCost- (Optional) Perform JIT inlining if query is more expensive. Default:500000.jitOptimizeAboveCost- (Optional) Optimize JIT-compiled functions if query is more expensive. Default:500000.joinCollapseLimit- (Optional) Sets the FROM-list size beyond which JOIN constructs are not flattened. Default:8.lcMessages- (Optional) Sets the language in which messages are displayed.lcMonetary- (Optional) Sets the locale for formatting monetary amounts. Default:C.lcNumeric- (Optional) Sets the locale for formatting numbers. Default:C.lcTime- (Optional) Sets the locale for formatting date and time values. Default:C.logAutovacuumMinDuration- (Optional) Sets the minimum execution time above which autovacuum actions will be logged. Default:600000.logCheckpoints- (Optional) Logs each checkpoint. Default:on.logConnections- (Optional) Logs specified aspects of connection establishment and setup.logDisconnections- (Optional) Logs end of a session, including duration. Default:off.logDuration- (Optional) Logs the duration of each completed SQL statement. Default:off.logErrorVerbosity- (Optional) Sets the verbosity of logged messages. Default:default.logExecutorStats- (Optional) Writes executor performance statistics to the server log. Default:off.logHostname- (Optional) Logs the host name in the connection logs. Default:off.logLockWaits- (Optional) Logs long lock waits. Default:off.logMinDurationSample- (Optional) Sets the minimum execution time above which a sample of statements will be logged. Sampling is determined by “logStatementSampleRate”. Default:-1.logMinDurationStatement- (Optional) Sets the minimum execution time above which all statements will be logged. Default:-1.logMinErrorStatement- (Optional) Causes all statements generating error at or above this level to be logged. Default:error.logMinMessages- (Optional) Sets the message levels that are logged. Default:warning.logParameterMaxLength- (Optional) Sets the maximum length in bytes of data logged for bind parameter values when logging statements. Default:-1.logParameterMaxLengthOnError- (Optional) Sets the maximum length in bytes of data logged for bind parameter values when logging statements, on error. Default:0.logParserStats- (Optional) Writes parser performance statistics to the server log. Default:off.logPlannerStats- (Optional) Writes planner performance statistics to the server log. Default:off.logRecoveryConflictWaits- (Optional) Logs standby recovery conflict waits. Default:off.logReplicationCommands- (Optional) Logs each replication command. Default:off.logRotationSize- (Optional) Sets the maximum size a log file can reach before being rotated. Default:10240.logStartupProgressInterval- (Optional) Time between progress updates for long-running startup operations. Default:10000.logStatement- (Optional) Sets the type of statements logged. Default:none.logStatementSampleRate- (Optional) Fraction of statements exceeding “logMinDurationSample” to be logged. Default:1.logStatementStats- (Optional) Writes cumulative performance statistics to the server log. Default:off.logTempFiles- (Optional) Log the use of temporary files larger than this number of kilobytes. Default:-1.logTransactionSampleRate- (Optional) Sets the fraction of transactions from which to log all statements. Default:0.logicalDecodingWorkMem- (Optional) Sets the maximum memory to be used for logical decoding. Default:65536.maintenanceIoConcurrency- (Optional) A variant of “effectiveIoConcurrency” that is used for maintenance work. Default:16.maxFilesPerProcess- (Optional) Sets the maximum number of files each server process is allowed to open simultaneously. Default:1000. Requires restart.maxLocksPerTransaction- (Optional) Sets the maximum number of locks per transaction. Default:64. Requires restart.maxLogicalReplicationWorkers- (Optional) Maximum number of logical replication worker processes. Default:4. Requires restart.maxNotifyQueuePages- (Optional) Sets the maximum number of allocated pages for NOTIFY / LISTEN queue. Default:1048576. Requires restart.maxParallelApplyWorkersPerSubscription- (Optional) Maximum number of parallel apply workers per subscription. Default:2.maxParallelMaintenanceWorkers- (Optional) Sets the maximum number of parallel processes per maintenance operation. Default:2.maxParallelWorkers- (Optional) Sets the maximum number of parallel workers that can be active at one time. Default:8.maxParallelWorkersPerGather- (Optional) Sets the maximum number of parallel processes per executor node. Default:2.maxPredLocksPerPage- (Optional) Sets the maximum number of predicate-locked tuples per page. Default:2.maxPredLocksPerRelation- (Optional) Sets the maximum number of predicate-locked pages and tuples per relation. Default:-2.maxPredLocksPerTransaction- (Optional) Sets the maximum number of predicate locks per transaction. Default:64. Requires restart.maxPreparedTransactions- (Optional) Sets the maximum number of simultaneously prepared transactions. Default:0. Requires restart.maxSlotWalKeepSize- (Optional) Sets the maximum WAL size that can be reserved by replication slots. Default:-1.maxStandbyArchiveDelay- (Optional) Sets the maximum delay before canceling queries when a hot standby server is processing archived WAL data. Default:30000.maxStandbyStreamingDelay- (Optional) Sets the maximum delay before canceling queries when a hot standby server is processing streamed WAL data. Default:30000.maxSyncWorkersPerSubscription- (Optional) Maximum number of table synchronization workers per subscription. Default:2.minDynamicSharedMemory- (Optional) Amount of dynamic shared memory reserved at startup. Default:0. Requires restart.minParallelIndexScanSize- (Optional) Sets the minimum amount of index data for a parallel scan. Default:64.minParallelTableScanSize- (Optional) Sets the minimum amount of table data for a parallel scan. Default:1024.parallelLeaderParticipation- (Optional) Controls whether Gather and Gather Merge also run subplans. Default:on.parallelSetupCost- (Optional) Sets the planner’s estimate of the cost of starting up worker processes for parallel query. Default:1000.parallelTupleCost- (Optional) Sets the planner’s estimate of the cost of passing each tuple (row) from worker to leader backend. Default:0.1.planCacheMode- (Optional) Controls the planner’s selection of custom or generic plan. Default:auto.quoteAllIdentifiers- (Optional) When generating SQL fragments, quote all identifiers. Default:off.randomPageCost- (Optional) Sets the planner’s estimate of the cost of a nonsequentially fetched disk page. Default:4.recursiveWorktableFactor- (Optional) Sets the planner’s estimate of the average size of a recursive query’s working table. Default:10.removeTempFilesAfterCrash- (Optional) Remove temporary files after backend crash. Default:on.rowSecurity- (Optional) Enables row security. Default:on.scramIterations- (Optional) Sets the iteration count for SCRAM secret generation. Default:4096.searchPath- (Optional) Sets the schema search order for names that are not schema-qualified. Default:"$user", public.seqPageCost- (Optional) Sets the planner’s estimate of the cost of a sequentially fetched disk page. Default:1.sessionReplicationRole- (Optional) Sets the session’s behavior for triggers and rewrite rules. Default:origin.sharedBuffers- (Optional) Sets the number of shared memory buffers used by the server. Default:16384. Requires restart.standardConformingStrings- (Optional) Causes ‘…’ strings to treat backslashes literally. Default:on.statementTimeout- (Optional) Sets the maximum allowed duration of any statement. Default:0.statsFetchConsistency- (Optional) Sets the consistency of accesses to statistics data. Default:cache.synchronizeSeqscans- (Optional) Enables synchronized sequential scans. Default:on.synchronousCommit- (Optional) Sets the current transaction’s synchronization level. Default:on.tcpKeepalivesCount- (Optional) Maximum number of TCP keepalive retransmits. Default:0.tcpKeepalivesIdle- (Optional) Time between issuing TCP keepalives. Default:0.tcpKeepalivesInterval- (Optional) Time between TCP keepalive retransmits. Default:0.tempBuffers- (Optional) Sets the maximum number of temporary buffers used by each session. Default:1024.tempFileLimit- (Optional) Limits the total size of all temporary files used by each process. Default:-1.tempTablespaces- (Optional) Sets the tablespace(s) to use for temporary tables and sort files.timezone- (Optional) Sets the time zone for displaying and interpreting time stamps. Default:GMT.traceConnectionNegotiation- (Optional) Logs details of pre-authentication connection handshake. Default:off. Requires restart.trackActivities- (Optional) Collects information about executing commands. Default:on.trackActivityQuerySize- (Optional) Sets the size reserved for pg_stat_activity.query, in bytes. Default:1024. Requires restart.trackFunctions- (Optional) Collects function-level statistics on database activity. Default:none.trackIoTiming- (Optional) Collects timing statistics for database I/O activity. Default:off.trackWalIoTiming- (Optional) Collects timing statistics for WAL I/O activity. Default:off.transformNullEquals- (Optional) Treats “expr=NULL” as “expr IS NULL”. Default:off.vacuumBufferUsageLimit- (Optional) Sets the buffer pool size for VACUUM, ANALYZE, and autovacuum. Default:2048.vacuumCostDelay- (Optional) Vacuum cost delay in milliseconds. Default:0.vacuumCostLimit- (Optional) Vacuum cost amount available before napping. Default:200.vacuumCostPageDirty- (Optional) Vacuum cost for a page dirtied by vacuum. Default:20.vacuumCostPageHit- (Optional) Vacuum cost for a page found in the buffer cache. Default:1.vacuumCostPageMiss- (Optional) Vacuum cost for a page not found in the buffer cache. Default:2.vacuumFailsafeAge- (Optional) Age at which VACUUM should trigger failsafe to avoid a wraparound outage. Default:1600000000.vacuumFreezeMinAge- (Optional) Minimum age at which VACUUM should freeze a table row. Default:50000000.vacuumFreezeTableAge- (Optional) Age at which VACUUM should scan whole table to freeze tuples. Default:150000000.vacuumMultixactFailsafeAge- (Optional) Multixact age at which VACUUM should trigger failsafe to avoid a wraparound outage. Default:1600000000.vacuumMultixactFreezeMinAge- (Optional) Minimum age at which VACUUM should freeze a MultiXactId in a table row. Default:5000000.vacuumMultixactFreezeTableAge- (Optional) Multixact age at which VACUUM should scan whole table to freeze tuples. Default:150000000.walCompression- (Optional) Compresses full-page writes written in WAL file with specified method. Default:off.walReceiverStatusInterval- (Optional) Sets the maximum interval between WAL receiver status reports to the sending server. Default:10.walReceiverTimeout- (Optional) Sets the maximum wait time to receive data from the sending server. Default:60000.walSenderTimeout- (Optional) Sets the maximum time to wait for WAL replication. Default:60000.walSkipThreshold- (Optional) Minimum size of new file to fsync instead of writing WAL. Default:2048.walWriterDelay- (Optional) Time between WAL flushes performed in the WAL writer. Default:200.walWriterFlushAfter- (Optional) Amount of WAL written out by WAL writer that triggers a flush. Default:128.workMem- (Optional) Sets the maximum memory to be used for query workspaces. Default:4096.xmlbinary- (Optional) Sets how binary values are to be encoded in XML. Default:base64.xmloption- (Optional) Sets whether XML data in implicit parsing and serialization operations is to be considered as documents or content fragments. Default:content.
Create DatabaseAdvancedPostgresqlConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DatabaseAdvancedPostgresqlConfig(name: string, args: DatabaseAdvancedPostgresqlConfigArgs, opts?: CustomResourceOptions);@overload
def DatabaseAdvancedPostgresqlConfig(resource_name: str,
args: DatabaseAdvancedPostgresqlConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DatabaseAdvancedPostgresqlConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
pg_parameters: Optional[Mapping[str, str]] = None)func NewDatabaseAdvancedPostgresqlConfig(ctx *Context, name string, args DatabaseAdvancedPostgresqlConfigArgs, opts ...ResourceOption) (*DatabaseAdvancedPostgresqlConfig, error)public DatabaseAdvancedPostgresqlConfig(string name, DatabaseAdvancedPostgresqlConfigArgs args, CustomResourceOptions? opts = null)
public DatabaseAdvancedPostgresqlConfig(String name, DatabaseAdvancedPostgresqlConfigArgs args)
public DatabaseAdvancedPostgresqlConfig(String name, DatabaseAdvancedPostgresqlConfigArgs args, CustomResourceOptions options)
type: digitalocean:DatabaseAdvancedPostgresqlConfig
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "digitalocean_databaseadvancedpostgresqlconfig" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args DatabaseAdvancedPostgresqlConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DatabaseAdvancedPostgresqlConfigArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DatabaseAdvancedPostgresqlConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DatabaseAdvancedPostgresqlConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DatabaseAdvancedPostgresqlConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var databaseAdvancedPostgresqlConfigResource = new DigitalOcean.DatabaseAdvancedPostgresqlConfig("databaseAdvancedPostgresqlConfigResource", new()
{
ClusterId = "string",
PgParameters =
{
{ "string", "string" },
},
});
example, err := digitalocean.NewDatabaseAdvancedPostgresqlConfig(ctx, "databaseAdvancedPostgresqlConfigResource", &digitalocean.DatabaseAdvancedPostgresqlConfigArgs{
ClusterId: pulumi.String("string"),
PgParameters: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
resource "digitalocean_databaseadvancedpostgresqlconfig" "databaseAdvancedPostgresqlConfigResource" {
cluster_id = "string"
pg_parameters = {
"string" = "string"
}
}
var databaseAdvancedPostgresqlConfigResource = new DatabaseAdvancedPostgresqlConfig("databaseAdvancedPostgresqlConfigResource", DatabaseAdvancedPostgresqlConfigArgs.builder()
.clusterId("string")
.pgParameters(Map.of("string", "string"))
.build());
database_advanced_postgresql_config_resource = digitalocean.DatabaseAdvancedPostgresqlConfig("databaseAdvancedPostgresqlConfigResource",
cluster_id="string",
pg_parameters={
"string": "string",
})
const databaseAdvancedPostgresqlConfigResource = new digitalocean.DatabaseAdvancedPostgresqlConfig("databaseAdvancedPostgresqlConfigResource", {
clusterId: "string",
pgParameters: {
string: "string",
},
});
type: digitalocean:DatabaseAdvancedPostgresqlConfig
properties:
clusterId: string
pgParameters:
string: string
DatabaseAdvancedPostgresqlConfig Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DatabaseAdvancedPostgresqlConfig resource accepts the following input properties:
- Cluster
Id string - The ID of the target PostgreSQL Advanced Edition cluster.
- Pg
Parameters Dictionary<string, string> - A map of PostgreSQL GUC parameter names to their string values. Only parameters included in this map are managed by Terraform. Values use PostgreSQL GUC syntax (for example,
workMemis specified in kilobytes unless a unit suffix is provided).
- Cluster
Id string - The ID of the target PostgreSQL Advanced Edition cluster.
- Pg
Parameters map[string]string - A map of PostgreSQL GUC parameter names to their string values. Only parameters included in this map are managed by Terraform. Values use PostgreSQL GUC syntax (for example,
workMemis specified in kilobytes unless a unit suffix is provided).
- cluster_
id string - The ID of the target PostgreSQL Advanced Edition cluster.
- pg_
parameters map(string) - A map of PostgreSQL GUC parameter names to their string values. Only parameters included in this map are managed by Terraform. Values use PostgreSQL GUC syntax (for example,
workMemis specified in kilobytes unless a unit suffix is provided).
- cluster
Id String - The ID of the target PostgreSQL Advanced Edition cluster.
- pg
Parameters Map<String,String> - A map of PostgreSQL GUC parameter names to their string values. Only parameters included in this map are managed by Terraform. Values use PostgreSQL GUC syntax (for example,
workMemis specified in kilobytes unless a unit suffix is provided).
- cluster
Id string - The ID of the target PostgreSQL Advanced Edition cluster.
- pg
Parameters {[key: string]: string} - A map of PostgreSQL GUC parameter names to their string values. Only parameters included in this map are managed by Terraform. Values use PostgreSQL GUC syntax (for example,
workMemis specified in kilobytes unless a unit suffix is provided).
- cluster_
id str - The ID of the target PostgreSQL Advanced Edition cluster.
- pg_
parameters Mapping[str, str] - A map of PostgreSQL GUC parameter names to their string values. Only parameters included in this map are managed by Terraform. Values use PostgreSQL GUC syntax (for example,
workMemis specified in kilobytes unless a unit suffix is provided).
- cluster
Id String - The ID of the target PostgreSQL Advanced Edition cluster.
- pg
Parameters Map<String> - A map of PostgreSQL GUC parameter names to their string values. Only parameters included in this map are managed by Terraform. Values use PostgreSQL GUC syntax (for example,
workMemis specified in kilobytes unless a unit suffix is provided).
Outputs
All input properties are implicitly available as output properties. Additionally, the DatabaseAdvancedPostgresqlConfig resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing DatabaseAdvancedPostgresqlConfig Resource
Get an existing DatabaseAdvancedPostgresqlConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DatabaseAdvancedPostgresqlConfigState, opts?: CustomResourceOptions): DatabaseAdvancedPostgresqlConfig@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
pg_parameters: Optional[Mapping[str, str]] = None) -> DatabaseAdvancedPostgresqlConfigfunc GetDatabaseAdvancedPostgresqlConfig(ctx *Context, name string, id IDInput, state *DatabaseAdvancedPostgresqlConfigState, opts ...ResourceOption) (*DatabaseAdvancedPostgresqlConfig, error)public static DatabaseAdvancedPostgresqlConfig Get(string name, Input<string> id, DatabaseAdvancedPostgresqlConfigState? state, CustomResourceOptions? opts = null)public static DatabaseAdvancedPostgresqlConfig get(String name, Output<String> id, DatabaseAdvancedPostgresqlConfigState state, CustomResourceOptions options)resources: _: type: digitalocean:DatabaseAdvancedPostgresqlConfig get: id: ${id}import {
to = digitalocean_databaseadvancedpostgresqlconfig.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cluster
Id string - The ID of the target PostgreSQL Advanced Edition cluster.
- Pg
Parameters Dictionary<string, string> - A map of PostgreSQL GUC parameter names to their string values. Only parameters included in this map are managed by Terraform. Values use PostgreSQL GUC syntax (for example,
workMemis specified in kilobytes unless a unit suffix is provided).
- Cluster
Id string - The ID of the target PostgreSQL Advanced Edition cluster.
- Pg
Parameters map[string]string - A map of PostgreSQL GUC parameter names to their string values. Only parameters included in this map are managed by Terraform. Values use PostgreSQL GUC syntax (for example,
workMemis specified in kilobytes unless a unit suffix is provided).
- cluster_
id string - The ID of the target PostgreSQL Advanced Edition cluster.
- pg_
parameters map(string) - A map of PostgreSQL GUC parameter names to their string values. Only parameters included in this map are managed by Terraform. Values use PostgreSQL GUC syntax (for example,
workMemis specified in kilobytes unless a unit suffix is provided).
- cluster
Id String - The ID of the target PostgreSQL Advanced Edition cluster.
- pg
Parameters Map<String,String> - A map of PostgreSQL GUC parameter names to their string values. Only parameters included in this map are managed by Terraform. Values use PostgreSQL GUC syntax (for example,
workMemis specified in kilobytes unless a unit suffix is provided).
- cluster
Id string - The ID of the target PostgreSQL Advanced Edition cluster.
- pg
Parameters {[key: string]: string} - A map of PostgreSQL GUC parameter names to their string values. Only parameters included in this map are managed by Terraform. Values use PostgreSQL GUC syntax (for example,
workMemis specified in kilobytes unless a unit suffix is provided).
- cluster_
id str - The ID of the target PostgreSQL Advanced Edition cluster.
- pg_
parameters Mapping[str, str] - A map of PostgreSQL GUC parameter names to their string values. Only parameters included in this map are managed by Terraform. Values use PostgreSQL GUC syntax (for example,
workMemis specified in kilobytes unless a unit suffix is provided).
- cluster
Id String - The ID of the target PostgreSQL Advanced Edition cluster.
- pg
Parameters Map<String> - A map of PostgreSQL GUC parameter names to their string values. Only parameters included in this map are managed by Terraform. Values use PostgreSQL GUC syntax (for example,
workMemis specified in kilobytes unless a unit suffix is provided).
Import
An advanced PostgreSQL database cluster’s configuration can be imported using the id of the parent cluster, e.g.
$ pulumi import digitalocean:index/databaseAdvancedPostgresqlConfig:DatabaseAdvancedPostgresqlConfig example 52556c07-788e-4d41-b8a7-c796432197d1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- DigitalOcean pulumi/pulumi-digitalocean
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
digitaloceanTerraform Provider.
published on Saturday, Jun 20, 2026 by Pulumi