Choosing and configuring PostgreSQL for n8n

Pick a supported PostgreSQL version, size the connection pool, encrypt the database connection and decide when a managed service such as RDS fits, with Aurora and PostgreSQL-compatible databases treated as a risk to confirm.

On this page

Choosing and configuring PostgreSQL for n8n: what the database carries

A team moving n8n off SQLite or an unsupported database should plan for PostgreSQL, and the decisions that matter are the PostgreSQL version, the connection pool size, SSL between n8n and the database, and whether to run the database yourself or use a managed service. n8n keeps its workflow definitions, execution history and encrypted credentials in the database, so the choice of database shapes backups, upgrades and recovery for the whole instance. DeployOpen plans and implements this work inside your own cloud accounts, data centers or restricted networks, and the database design is agreed in writing before any cutover.

In queue mode, the database becomes a shared dependency. The main instance writes to it, and the worker pool reads and writes workflow data in it while executions run, so connection counts grow with the number of workers and processes rather than with the number of users. Confirm how many connections each n8n process opens under your settings, then size the pool and the database's connection limit together. Also confirm that the encryption key is provisioned identically on every process that reads the database, because credentials stored there cannot be decrypted without it.

Before you pick a managed service, check that it is a supported PostgreSQL major version with a vendor-stated support window, that it supports the SSL mode you intend to require, and that it gives you the backup and point-in-time recovery you need. Aurora and other PostgreSQL-compatible engines may behave differently from upstream PostgreSQL in replication, extensions and failover, so treat compatibility with n8n's migrations as something to test in a staging copy rather than assume. The PostgreSQL versioning policy lists the supported major versions and their end dates, which is the right starting reference for your version decision.

Which PostgreSQL version to run and how long it stays supported

PostgreSQL ships one major version a year and supports each for five years, so the version you install sets how long your n8n database stays on a maintained release. The cards below cover the supported majors, the unsupported older releases and the end-of-life dates that should shape your choice.

Supported majors and end dates

PostgreSQL 18, 17, 16, 15 and 14 are supported today. Their published end dates are November 14, 2030 for 18, November 8, 2029 for 17, November 9, 2028 for 16, November 11, 2027 for 15 and November 12, 2026 for 14. Confirm the list against the versioning policy before you pick a major, because the list changes as releases age out.

Versioning policy

Versions 13 and earlier

PostgreSQL 13 and older releases no longer receive fixes, including security fixes. An n8n database on one of these versions carries known, unpatched defects in the database layer that holds your workflows and encrypted credentials. Check the installed version with a query such as SHOW server_version; before you plan any n8n change.

Yearly major release cadence

PostgreSQL releases a new major version about once a year and supports each one for five years after its first release. Because of this overlap, several majors are supported at once, and the newest one is usually a reasonable target for a new n8n deployment. Plan a major upgrade on a schedule rather than waiting for the end-of-life date to force it.

Support window per major
5 years

Why version 14 end-of-life should drive the choice

PostgreSQL 14 reaches end of support on November 12, 2026, so a new install on it would need a major upgrade soon after going live. Choose a major with a long remaining window, such as 17 or 18, and count the upgrade work into the project plan. Ask your team whether any existing n8n database runs on 14 and when its upgrade is scheduled.

Minor updates versus major upgrades

Minor releases keep the same storage format, so they only need new executables and a restart. Major upgrades change the on-disk format and need a dump and restore, pg_upgrade, or logical replication. Treat these as two separate maintenance tasks with their own test steps and rollback plans for n8n.

Upgrading docs

Self-managed, Kubernetes operator or managed PostgreSQL: which fits

A single PostgreSQL server on a virtual machine is the simplest model and suits a small n8n instance where a short outage is acceptable. Your team installs the packages, tunes the configuration, manages storage, applies minor and major upgrades, and runs the backups. PostgreSQL does not detect a failed primary or promote a standby on its own, so with one server there is no automatic failover at all: recovery means restoring from backup onto replacement hardware.

  • Operational work you keep: OS patching, PostgreSQL minor updates (which replace executables and require a restart), major upgrades, monitoring and disk capacity.
  • Backups and recovery: you own base backups and WAL archiving for point-in-time recovery, and you should test restores on a schedule.
  • Failover: none built in. Any standby you add needs external tooling to detect failure and promote it.
  • Connection limits: size the pool for the n8n processes that connect, and add a pooler if connection counts climb.
  • Single point of failure: a host failure stops every workflow that depends on the database.

Confirm your recovery time expectations and restore procedure before you go live, because on this model they depend entirely on your own runbooks.

Database options and when each fits n8n

This table compares self-managed PostgreSQL, CloudNativePG, Patroni-based clusters and managed PostgreSQL-compatible services across high availability, backup and recovery, pooling, upgrades and operations ownership. Read each row as a question to put to your team or a provider, since the answer depends on your platform and the service tier you buy.

CriterionSelf-managed PostgreSQLCloudNativePG on KubernetesPatroni clusterManaged PostgreSQL-compatible service
High availability approachHot standbys and replication are built in, but PostgreSQL does not detect primary failure or promote a standby on its ownKubernetes API integration handles automated failover without external tools, with synchronous replication availablePatroni manages failover using a distributed configuration store such as etcd, Consul, ZooKeeper or KubernetesFailover is handled by the provider; confirm whether it is automatic, the replica topology and the recovery behavior for n8n
Backup and point-in-time recoveryContinuous archiving and WAL-based recovery must be designed, scheduled and tested by your teamObject storage backups, volume snapshots and WAL archiving with point-in-time recovery are supported; confirm the plugin you useBackup tooling is not part of Patroni itself; you choose and test a separate backup stackAsk whether point-in-time recovery is included, the retention window and whether restores into a new instance are tested
Connection poolingTypically an added PgBouncer layer that your team configures and monitorsBuilt-in PgBouncer pooling is available; size pool settings against n8n worker countUsually an external pooler such as PgBouncer placed in front of the clusterCheck whether a pooler is offered, its mode, and any limits on connections per instance
Upgrade pathMajor upgrades by dump and restore, pg_upgrade or logical replication, scheduled by your teamThe operator manages supported PostgreSQL versions; confirm the image and minor-line policy you adoptMajor upgrades are planned on the cluster itself; confirm rollback steps and the tested procedureProvider controls the version calendar; confirm the notice period and whether you can delay a major upgrade
Who runs the operationsYour database, platform and on-call teams, including patching and restoresYour Kubernetes platform team, with the operator automating routine tasksYour database team, plus the team that runs the configuration storeThe provider runs the database; you still own schemas, n8n credentials and access policy
Fit for n8nSuits teams with mature PostgreSQL skills and a standard runbookSuits organizations already operating Kubernetes with a platform teamSuits teams that need Patroni's model on virtual machines or bare metalSuits teams that accept provider-managed operations; check that the engine and version match the n8n support matrix

Sizing the connection pool for n8n main instances and workers

Every n8n main instance, worker and webhook processor opens its own connections to PostgreSQL, so the total connection count grows with queue mode scale. Adding workers to handle more executions is not free on the database side: each new process brings its own pool of connections, and each connection consumes memory and a backend process on the server. Before you choose a size, add up the processes you plan to run, multiply by the connection pool size configured for each, and compare that total with the connection limit and memory on the PostgreSQL server. Count the processes for the target scale, not only the day one footprint, because the number tends to rise as the team adds workers.

You have two common ways to put a pooler between n8n and PostgreSQL. PgBouncer is a lightweight pooler that multiplexes many client connections onto a smaller set of server connections, and it is the standard choice on virtual machines and Compose or Kubernetes setups you manage yourself. On CloudNativePG, the operator includes built-in connection pooling with PgBouncer, so the pooler is part of the cluster definition. Confirm with your team how pooling mode interacts with the features n8n uses, and test that the configuration works with your chosen PostgreSQL version and n8n release before you put it into production. Keep in mind that a pooler adds one more component to monitor, patch and back up in your operations plan.

Pool size is a trade-off. Larger pools let more executions talk to the database at once, but every extra server connection costs database memory and can cause contention when the server is busy. Smaller pools protect the database but can make executions wait for a free connection. The right numbers depend on your workflow mix, execution volume, hardware and PostgreSQL settings, so they must be set by load testing in your own environment rather than copied from this page or from another team's configuration. Ask your database and n8n owners to agree on a test plan that measures connection usage, wait times and memory at realistic execution rates, and record the results alongside the configuration so the settings can be reviewed at each scale change.

Setup sequence: from database provisioning to a verified n8n connection

This sequence takes a PostgreSQL database from version selection to an n8n connection that is encrypted, verified, and tested across restarts and queue mode workers. Each step ends with a check, so the team knows the database is ready before workflows depend on it.

  1. Select a supported PostgreSQL major version

    Choose a major version that stays inside PostgreSQL's support window for the whole planned life of the n8n instance, not only at install time. The supported majors listed in the versioning policy are 18, 17, 16, 15 and 14, and 14 leaves support on November 12, 2026, so it is a weak starting point for a new build. The platform team owns this decision and should confirm that any managed service or distribution offers the same major. Check: the chosen version and its end-of-support date are written into the change record, and your hosting option supports that version.

  2. Provision the database and a dedicated role

    The database administrator creates an empty database and a login role that owns only that database, with no superuser rights and no shared application account. Password authentication should use SCRAM, because PostgreSQL 18 deprecated MD5 password authentication in favor of SCRAM. The password goes into your secrets manager, not into a compose file or a chat thread. Check: logging in as the n8n role succeeds, and the same role cannot create other roles or read databases it does not own.

  3. Enable TLS and verify the server certificate

    The DBA configures the server with a certificate issued by your internal or public certificate authority. The n8n side requires an encrypted connection and verifies the server certificate against the CA bundle that the team controls. PostgreSQL's authentication methods reference lists certificate and other options, so pick one your identity team can operate and document. Check: a test connection from the n8n host reports an encrypted session, and the same test fails when a wrong CA bundle is supplied, which proves verification is active.

  4. Point n8n at the PostgreSQL database

    The platform engineer sets n8n's PostgreSQL variables through the deployment's secret and environment mechanism, covering database type, host, port, database name, role, password and SSL options. Confirm the exact variable names against the n8n documentation for the version you run, since they can change between releases. Keep the encryption key identical to the one already in use, or record it safely for a new instance, because stored credentials depend on it. Check: the rendered configuration matches the plan and the n8n process starts without database errors.

  5. Confirm migrations complete on first start

    On first start against an empty database, n8n creates its schema. The operator reads the startup log from beginning to end and confirms that the migrations finish without errors before anyone opens the editor. Then they query the database as the n8n role to confirm the expected tables exist in the target schema. Check: the log reports that the instance started and the tables are present. A partial schema or a permission error means the role lacks rights on the schema, so the grants must be fixed before users sign in.

  6. Test restart and data persistence

    Restart the n8n container or pod, then confirm the instance returns with the same workflows, credentials and execution history. If the database is new, create a small test workflow and a test credential before the restart so there is something to check. Repeat the restart during a quiet period so any connection or TLS handshake problem appears under test conditions. Check: the test workflow and credential survive the restart, and the log shows a clean reconnection to PostgreSQL with no new errors.

  7. Verify worker connections in queue mode

    In queue mode, the main instance passes executions through Redis to workers, and the workers read and write workflow data in PostgreSQL. Every worker and webhook processor needs the same encryption key and the same database settings, and each verifies the server certificate the same way. Start one worker, run a test execution, and confirm that the worker log shows its database connection and that the result is saved. Check: an execution triggered by a webhook completes on a worker, and its record appears in the shared database.

  8. Size the connection pool against server limits

    Count the database connections that each main instance and worker opens, then compare the total with the server's connection limit, leaving headroom for administrators and maintenance jobs. Ask the DBA for the current connection limit and agree the pool setting before production. If the total is high, a pooler such as PgBouncer can sit between n8n and PostgreSQL, but the team must test n8n through the pooler before relying on it. Check: adding a worker in a test environment keeps total connections under the agreed limit.

How n8n main, workers and PostgreSQL connect

The diagram starts with triggers and webhooks arriving at the main instance and webhook processors, which hand executions through Redis to a pool of workers. Every n8n process reads and writes workflow data in PostgreSQL, and a connection pooler sits between them and the database over an encrypted connection. The dashed boundary marks the database network, where you should confirm who can reach the pooler and the database and that only n8n processes hold the encryption key.

Main, webhook processors and workers reach PostgreSQL through a pooler inside a marked database network.

Security settings for the n8n database connection

The n8n database holds workflow data and encrypted credentials, so its connection needs the same care as the application itself. The cards below cover transport encryption, authentication, privileges, network placement and the encryption key that every n8n process must share.

Verify the server certificate

Enable SSL between n8n and PostgreSQL and make n8n verify the server certificate against your internal certificate authority, not just accept any certificate. Encryption without verification still leaves the connection open to a spoofed database. Confirm which SSL mode your n8n version and database driver support, and test the connection from each container or pod that talks to the database, including workers.

PostgreSQL auth methods

Use SCRAM, not MD5

Set password_encryption to scram-sha-256 and make sure the n8n database role's password is stored with SCRAM. PostgreSQL 18 deprecated MD5 password authentication in favor of SCRAM, so a role still set up with MD5 is a finding to fix before the upgrade, not after. Check pg_hba.conf so the n8n entries do not fall back to MD5 or trust authentication.

Grant least privilege to the n8n role

Create a dedicated role that owns or can write only the n8n database and schema, and keep administrative and superuser roles out of the n8n connection string. Do not reuse the role for other applications or for ad hoc analysis. Ask your DBA to document who can log in as the n8n role, since that role can read every stored credential row.

Restrict network paths to the database

Allow connections to PostgreSQL only from the n8n main instance, webhook processors and workers, using firewall rules, security groups or network policies. Keep the database off public addresses and out of shared development networks. Review the list of allowed sources whenever you add a worker pool, because each new process is another place credentials are read.

Share the encryption key across queue mode

In queue mode, every worker and webhook processor must receive the same encryption key as the main instance, because credentials are stored encrypted in the database and each process decrypts them to run workflows. A mismatched or regenerated key stops executions that use stored credentials. Store the key in your secrets manager, inject it identically into each process, and record where it is kept so a rotation does not strand credentials.

n8n queue mode docs

Treat database backups as credential stores

Backups of the n8n database contain the same encrypted credentials as the live database, so they need the same access controls, encryption at rest and retention rules. Restoring a backup without the matching encryption key leaves those credentials unreadable. Store the key separately from the backups, test a restore into an isolated environment, and confirm who may take, copy or restore dumps.

Planning major upgrades and point-in-time recovery for n8n data

Minor PostgreSQL releases and major upgrades are different operations, and n8n's database needs a plan for both. A minor release never changes the internal storage format, so applying one means replacing executables and restarting the server. A major upgrade is more involved: the PostgreSQL documentation describes dump and restore with pg_dumpall, pg_upgrade, or logical replication. Logical replication works between major versions and can keep downtime to several seconds, but it requires its own planning, testing and cutover steps. Before choosing a method, confirm the target major version against the PostgreSQL versioning policy. Version 14 is supported only until November 12, 2026, so an instance still on it needs a dated move to 15 or later.

Point-in-time recovery is the control that matters most for n8n data, because workflows, execution history and encrypted credentials all live in PostgreSQL. Continuous WAL archiving combined with a base backup lets you restore to a chosen moment, such as just before a bad workflow change or a faulty migration. A backup that has never been restored is not evidence of recovery, so schedule restore tests into a separate environment and record how long they take. Confirm that the restored database still works with the encryption key held by the n8n main instance, since credentials cannot be read without it, and confirm the archive location is separate from the primary database host.

The n8n version and the database version have to be planned together. Check the n8n release notes and upgrade guidance for the target n8n version, confirm which PostgreSQL major versions it supports, and sequence the two changes so that each step is tested on a copy of production data. Upgrade the database in a staging environment with the same n8n release running against it before touching production, and keep the previous n8n image tag and database backup available until the new combination has run real workflows. Write down the rollback path for each step before the change window opens.

Why Aurora and PostgreSQL-compatible databases need extra checks

A PostgreSQL-compatible database can behave like PostgreSQL for most queries and still differ in the places n8n depends on: migrations, extensions, replication and failover. The cards below are risks to test against the exact engine version you plan to run, not a verdict that these services cannot host n8n.

Compatibility is not identical

Compatibility means most SQL works the same way, not that every server behavior matches upstream PostgreSQL. n8n runs schema migrations on startup and reads and writes workflow and credential data through its own queries. Treat the provider's compatibility claim as a starting point and run a full n8n start, upgrade and workflow execution cycle against the exact engine version you intend to use.

PostgreSQL upgrade docs

Confirm supported versions with n8n

Ask n8n which PostgreSQL major versions it supports for the release line you will run, and whether that list includes the provider's version number. A provider may offer a version that upstream PostgreSQL still supports while n8n has not tested it. Record the answer in your change record so the next n8n upgrade starts from a confirmed baseline.

Check extensions and privileges

Managed services often limit which extensions you can install and which superuser actions are available. Confirm that the database role n8n uses can create and alter the objects its migrations need, and that any extension your team relies on is available in the provider's catalog for that exact version. A migration that fails on a missing privilege is easier to catch in a test restore than in production.

Test replication and failover behavior

Failover in a managed service may promote a replica, change the endpoint or briefly drop connections, and the timing differs from a self-run cluster. Test how n8n reconnects after a failover, including active executions and queue workers if you run queue mode. Ask the provider to document the failover sequence, the expected interruption and how the writer endpoint changes.

PostgreSQL failover docs

Verify backup and restore semantics

Snapshot-based and point-in-time recovery features differ between providers and between PostgreSQL versions. Restore a backup into a separate environment, start n8n against it and confirm credentials decrypt with the same encryption key and that recent workflow executions are present. Document the recovery point you can actually reach, which may differ from the one the provider advertises.

Plan the upgrade path explicitly

Provider-managed major upgrades can run on their own schedule and may not match the PostgreSQL version n8n has tested. Pin the engine version, choose a maintenance window and confirm which n8n release line you will run before any database upgrade. Ask the provider how its major upgrades affect replicas and rollback options, since the upstream rollback path may not exist in the managed product.

Questions buyers ask before outsourcing the PostgreSQL setup

What drives the cost of an outsourced PostgreSQL setup for n8n?

The cost follows the written scope, and four factors move it most: the target environment, whether high availability is required, how much backup and recovery work is included, and how many n8n workers and main instances connect to the database. A single PostgreSQL server on a virtual machine is a much smaller job than a replicated cluster on Kubernetes with tested point-in-time recovery. Compliance evidence adds effort because each control needs a documented configuration and a record that it was checked. Costs are one-time for design, build and handover, and recurring only if you add a retainer for patching, minor releases and monitoring. Ask any partner to price these items separately so you can see what you are paying for.

How long does it take to move n8n onto a new PostgreSQL database?

Duration depends on the database size, the target platform, whether the move is a fresh install or a live migration, and how quickly change windows can be booked. A fresh install with an empty database is short compared with a move of a running instance that has years of execution history. Major version moves add time for compatibility testing and a rollback plan. Ask for a timeline that lists the change windows you must approve, the test cycles, and the cutover steps. Do not accept a duration that is not tied to these inputs.

What does my team need to provide before the PostgreSQL work starts?

Most delays come from access and approvals rather than database work. Prepare these items before work begins:

  • Network paths from the n8n main instance, workers and webhook processors to the database port, including firewall rules.
  • A certificate authority chain and server certificate for SSL connections to PostgreSQL, if you require encrypted connections.
  • Credentials for the cloud account, cluster or virtual machines, with the least privilege needed to build the stack.
  • Named change windows for cutover and rollback, and a contact who can approve them.
  • The n8n encryption key, stored in your secrets system, so the database move does not lose access to stored credentials.
Can our internal team set up PostgreSQL for n8n without a partner?

Yes, a team with PostgreSQL administration skills can do it, and the official documentation covers installation, authentication, replication and upgrades. The gap is usually operational: testing restores, planning failover, and keeping pace with minor releases on a fixed schedule. Check whether your team has someone who owns database backups and can run a restore test, and who will handle the database when n8n's requirements change. If those gaps exist, an outside partner can design and build the stack, then hand over runbooks your team operates.

Do we need high availability for the n8n database?

Decide this from your recovery targets, not from the feature list. PostgreSQL supports hot standby servers and both synchronous and asynchronous replication, but it does not detect a failed primary or promote a standby on its own, so automatic failover requires external tooling. On Kubernetes, CloudNativePG includes failover through the Kubernetes API, and Patroni is an alternative that needs a distributed configuration store. Each option adds components to build, monitor and patch. A single server with tested backups may meet a low-impact internal workload, while a customer-facing workflow usually needs a documented failover design.

Which PostgreSQL version should we choose for n8n, and how long will it be supported?

Choose a version that is still supported for the life of the deployment. According to the PostgreSQL versioning policy, version 18 is supported until November 14, 2030, while version 14 is supported until November 12, 2026, so it is near the end of its support window. Confirm the version your n8n release supports in the n8n documentation before you choose. Plan the upgrade path at the start, because a major upgrade needs compatibility testing, and minor releases need a regular patch cycle. Ask any partner to state which versions they will install and how they will handle the next major release.

What should a quote for PostgreSQL setup for n8n include?

A useful quote lists each deliverable and the environment it covers. Ask for these items in writing:

  • Architecture, including the database version, replication design and connection pool sizing for n8n workers.
  • Installation, SSL configuration to the database, authentication settings and secrets handling.
  • Backup scope, restore testing and the recovery targets you have agreed.
  • Handover documentation, monitoring setup and the change process for minor and major upgrades.
  • Assumptions about your network, certificates and change windows, plus the items that would change the price.

A quote that omits assumptions or restore testing is incomplete, however low the total.

Is an Aurora or PostgreSQL-compatible managed database safe to use with n8n?

Treat compatible databases as a risk to test, not a drop-in replacement. Behavior can differ from upstream PostgreSQL in replication, extensions, authentication and upgrade mechanics, and n8n's documentation describes PostgreSQL itself. Before you choose one, confirm with n8n which database engines it supports, run the workload in a test environment, and check how backups, failover and major upgrades work on that service. A managed PostgreSQL service such as RDS for PostgreSQL is simpler to justify because it runs the upstream engine, but confirm its supported versions with the provider.

Limits to confirm in your environment before go-live

The PostgreSQL choice for n8n depends on four things that change over time or differ by edition and provider: the PostgreSQL version your n8n release supports, whether high availability is available on your edition, how your managed service behaves, and how many connections your load needs. Confirm each one in writing before go-live, because the answers change the database design you build.

Supported PostgreSQL versions for your release

PostgreSQL 14 is supported until November 12, 2026, while 15 through 18 remain in support. Support for your n8n release is a separate question, so check the n8n release notes and version requirements for the exact n8n version you plan to run. A database major version that is in support but not listed for your n8n release is a blocker, not a warning. Record the n8n version and the PostgreSQL version together in your change record.

PostgreSQL versioning policy

Multi-main high availability by edition

Multi-main setup, which runs several main instances for high availability, is restricted to Enterprise self-hosted deployments. Community edition and n8n Cloud do not include it, and the Business plan's inclusion should be confirmed against the current pricing page before you design around it. If your edition does not include multi-main, plan database high availability separately and confirm how n8n behaves during a main instance restart.

n8n queue mode docs

Managed service behavior

Managed PostgreSQL services such as Amazon RDS run a modified engine with their own parameter groups, backup windows, failover behavior and extension lists. Confirm with the provider which PostgreSQL major versions it offers, how SSL is enforced and whether the certificate chain works with your n8n connection settings. Aurora and other PostgreSQL-compatible databases are not the same engine, so do not assume n8n's PostgreSQL behavior carries over without testing a restore, a failover and a worker restart on that exact service.

Connection pool sizing for your load

Each n8n main instance, worker and webhook processor opens its own database connections, so the total grows with the number of processes. Work out the peak connection count from your replica counts and the pool settings you configure, then compare it with the connection limit your database server or managed service allows. Confirm with your load tests how many concurrent executions your workers run before the database becomes the bottleneck, and add headroom for maintenance tasks and admin sessions.

Encrypted connections to the database

Confirm whether your database requires TLS for client connections and whether your n8n build and driver validate the server certificate against your internal certificate authority. A mismatch often appears only after go-live, when a restart or failover changes the endpoint. Ask your database team to confirm the CA bundle, the certificate expiry and the rotation process before you configure the connection.

How DeployOpen scopes and delivers the PostgreSQL work for n8n

DeployOpen plans, builds, documents and supports the PostgreSQL database behind your n8n instance inside your own infrastructure. The work starts with a written scope that fixes the PostgreSQL version, connection settings, SSL to the database and the hosting model, so your team knows what is delivered before any change is made.

How we scope

  • Confirm the n8n edition, version and deployment model, including whether queue mode and multiple workers are planned.
  • Record the PostgreSQL version you will run, checked against the current supported major versions and their end-of-support dates.
  • Agree whether the database runs on your own servers, Kubernetes, or a managed service such as Amazon RDS, with the trade-offs written down.

How we build

  • Size the connection pool from n8n's worker count and the database's connection limits, then document the chosen values.
  • Enable and verify SSL between n8n and PostgreSQL, including certificate handling for your internal certificate authority.
  • Configure backups and a tested point-in-time recovery path, and confirm the restore works before the instance goes live.

How we hand over

  • Provide a written configuration record covering versions, pool settings, SSL options, credentials handling and network paths.
  • Deliver runbooks for minor updates, major upgrade planning and restore steps, written for your platform and operations team.
  • Walk your engineers through the setup and the test results so they can run and review the database after handover.

How we support

  • Offer ongoing support, planned upgrades and continuous testing as a retainer after the initial fixed-scope engagement.
  • Plan major PostgreSQL upgrades and n8n version changes together, with a rollback path agreed in advance.
  • Retest connection, SSL and backup settings after changes to n8n, PostgreSQL or the hosting platform.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.