Skip to content
dbexplore

Managed Postgres

Cloud SQL or AlloyDB: how to choose

For the engineer signing off a Cloud SQL or AlloyDB choice, or a move between the two.

Cloud SQL Enterprise Plus or AlloyDB: what each costs at list price, where the crossover sits, and why leaving AlloyDB is the harder move.

Reference page, revised in place. Last updated .

Our default is Cloud SQL Enterprise Plus. Move to AlloyDB when your data is large and billed several times over, once for the primary, again for its standby and again for every replica, or when analytical queries have to run against live transactional tables. By the end of this page you should be able to answer three questions about your own databases, put a rough monthly figure on each service from Google’s list prices, and know which direction of travel is the hard one.

What Enterprise Plus changed

Cloud SQL’s Enterprise edition loses connectivity for less than 30 seconds on average during planned maintenance, and its 99.95% SLA excludes maintenance altogether. Enterprise Plus, now the default edition for new PostgreSQL 16 and later instances, is documented with a 99.99% SLA that includes maintenance, near-zero maintenance downtime on the primary, read pools, a data cache, and point-in-time recovery logs kept for up to 35 days against Enterprise’s seven. AlloyDB’s figures for non-disruptive maintenance are the same order: under a second for the primary and zero for read pools. The differences that remain are in how storage and readers are billed, in what readers go through during maintenance, and in leaving.

Question Cloud SQL Enterprise Plus AlloyDB
Planned maintenance Under one second on the primary, given a free replication slot; no figure for replicas Under one second on the primary, zero on read pools
Storage is billed on The capacity you provision The data you store
High availability A standby that doubles compute and storage prices A second node; storage is shared
Each extra reader A replica with its own disk, alone or in a read pool A node; storage cost unchanged
Analytics on live tables Row store only A columnar engine, using instance memory
PostgreSQL versions 12 to 18 14 to 18
Switching edition In place, under a second of downtime to upgrade Not applicable
Leaving A managed migration into AlloyDB No managed migration back into Cloud SQL

Readers are where maintenance differs, and the shared name “read pool” hides it. Google describes a Cloud SQL read pool as “a collection of read replica instances” behind one endpoint, and its availability documentation says near-zero downtime “is not available on read replica instances”. The primary keeps its sub-second figure as long as a replication slot is free, but every Cloud SQL reader, read pool nodes included, takes ordinary maintenance downtime, for which Google publishes no Enterprise Plus figure. AlloyDB read pool nodes take zero. Each Cloud SQL read pool node is also a read replica for billing, and replicas are billed as standalone instances with their own storage. If your readers serve traffic that must not blip during maintenance, that is a point for AlloyDB.

Where the money actually goes

At Google’s us-central1 list prices, read on 21 November 2026, both vCPU and memory cost about 23% more on AlloyDB than on Cloud SQL Enterprise Plus for the N2 machine series: $0.06608 an hour per vCPU against $0.0537. Storage runs the other way. On Cloud SQL you pay for provisioned capacity, the high-availability rate is exactly twice the standalone rate, and every replica is billed as a standalone instance with a disk at least as large as the primary’s. Automatic storage increase is on by default, and Google’s documentation is plain that those increases are permanent. A gigabyte of headroom on the primary is therefore paid for on the primary, again on its standby and again on every replica. Enterprise Plus also turns on its data cache by default, and the cache is billed per gigabyte. On AlloyDB you pay for the data you store, once, and adding read pool nodes does not change storage cost. Its per-gigabyte rate sits between a standalone Cloud SQL disk and a high-availability one.

Here is a worked example, illustrative only, at list prices with no committed-use discounts and with backups and network transfer left out: a 16 vCPU, 128 GiB high-availability primary with two readers, for a 730-hour month, with disks 70% full. On Cloud SQL the readers are two replicas, and each instance carries the 750 GB data cache Google lists for that machine, about 698 GiB at the per-GiB rate. On AlloyDB they are a two-node read pool.

  • 1 TiB provisioned. Cloud SQL comes to about $7,053 a month: $5,910 compute, $696 storage and $447 data cache. AlloyDB comes to about $7,488: $7,273 compute and $215 storage. Cloud SQL is cheaper.
  • 10 TiB provisioned. Cloud SQL comes to about $13,320, with storage now over half of it. AlloyDB comes to about $9,423, roughly 29% less.

On this shape the two lines cross at about 1.9 TiB provisioned. Turn the data cache off and the crossover moves out to about 2.8 TiB, and fuller disks push it further out, because AlloyDB’s storage saving comes from not billing empty space. Readers pull it in, but less than it first appears, since every AlloyDB node also carries the compute premium. With no readers the crossover is about 3.4 TiB, with four it is about 1.7 TiB, and however many are added it only approaches about 1.3 TiB. Below that, Cloud SQL is cheaper for this shape whatever the reader count.

This is where our default is weakest. A read-heavy fleet with a few terabytes and several readers per primary is very likely paying more on Cloud SQL than it would on AlloyDB. If the workload would also run on a smaller AlloyDB instance than its Cloud SQL equivalent, the crossover moves further in AlloyDB’s favour. We have not measured that, and the columnar engine works against it: once enabled, it takes 30% of the instance’s memory by default, out of memory that already costs 23% more. Committed-use discounts shift both sides, so run your own shape rather than trusting ours. How a Postgres bill is built across providers, and why every figure needs a stated basis, is set out in how Postgres cost works on a fleet.

Three questions to ask your own databases

Each of these can be answered from the databases you already run, and the queries work on any supported PostgreSQL version, on either service. The first reads every database on the server; the others answer for the database you are connected to, so run them in each one.

How much data is there, against what you pay for? Compare the data actually held with the disk size shown on the instance in the console.

SELECT pg_size_pretty(sum(pg_database_size(datname))) AS data_held
FROM pg_database
WHERE has_database_privilege(datname, 'CONNECT');

Managed services keep internal databases you cannot connect to, which is what the filter skips. The gap between this figure and the provisioned size is mostly headroom, and on Cloud SQL it is billed once per copy: two for a high-availability primary, plus one for each replica. The figure itself includes bloat, which both services bill. On AlloyDB there is no provisioned size, so compare it with billed storage instead. If the data held is in the hundreds of gigabytes, storage will not decide anything and compute will.

Does analytics touch the live tables? Google documents that the columnar engine helps queries that use a small number of columns from a larger table, with selective filters and aggregates limited to SUM, MIN, MAX, AVG and COUNT, and it names frequent updates to rows as what invalidates columnar data.

SELECT relname,
       seq_scan,
       seq_tup_read / nullif(seq_scan, 0)    AS rows_per_scan,
       n_tup_ins                             AS rows_inserted,
       n_tup_upd + n_tup_del                 AS rows_changed,
       pg_size_pretty(pg_table_size(relid))  AS size
FROM pg_stat_user_tables
WHERE seq_scan > 0
ORDER BY seq_tup_read DESC
LIMIT 10;

These counters accumulate from the last statistics reset, so check stats_reset in pg_stat_database before reading them as a rate, and partitions appear one row each, so add up a partitioned table’s children. A table near the top with millions of rows per scan and few rows changed is a columnar candidate if its queries read only a few of its columns, which the counters cannot tell you and the queries themselves can. A table near the top with heavy updates is not. If every candidate looks like that, the columnar engine is not a reason to move. Enabling it needs a restart.

How many readers will you run in two years? This is an inventory question rather than a query: count the replicas and read pool nodes each primary has today and the ones planned. On the example shape, below about 1.3 TiB provisioned the reader count does not change the answer.

If none of the three points at AlloyDB, stay on Cloud SQL and move to Enterprise Plus if you are not on it already. It needs PostgreSQL 12 or later, and Google documents the upgrade as an in-place operation of a few minutes with under a second of downtime. Switching back to Enterprise is also possible, with what Google calls “a longer downtime” and no figure.

Moving between them, and why one direction is harder

Going from Cloud SQL to AlloyDB is a supported path. Database Migration Service runs a continuous migration from Cloud SQL sources on any version from 9.6 to 18 into AlloyDB on 14 to 18, replicating changes until you cut over. Its known limitations are where a plan goes wrong. Roles and login credentials are not migrated, pg_cron jobs are not migrated, and materialized views arrive without their data. Schema changes made with ordinary DDL are not replicated, so freeze the schema until cutover, and sequence values only catch up at promotion. In a standard migration a table with no primary key carries over its initial copy and later inserts but not its updates or deletes. Find those tables, in every database, before you start.

SELECT c.oid::regclass AS table_without_primary_key
FROM pg_class c
JOIN pg_namespace n ON n.oid = c.relnamespace
WHERE c.relkind IN ('r', 'p')
  AND n.nspname NOT IN ('pg_catalog', 'information_schema')
  AND n.nspname NOT LIKE 'pg_toast%'
  AND NOT EXISTS (
        SELECT 1 FROM pg_constraint k
        WHERE k.conrelid = c.oid AND k.contype = 'p')
ORDER BY 1;

Going back is harder, and this asymmetry carries as much weight in our default as the cost model does. Google’s migration service documents five kinds of PostgreSQL source for a move into Cloud SQL: self-managed PostgreSQL, Amazon RDS, Amazon Aurora, Azure Database for PostgreSQL Flexible Server and Cloud SQL itself. AlloyDB is not one of them. The routes out are an export, which runs pg_dump to Cloud Storage and leaves out triggers and stored procedures unless you run pg_dump yourself, or logical replication you set up and operate yourself, as described in logical replication for migrations. An export is a snapshot, so a move that must not lose writes stops them before the export starts and keeps them stopped through the transfer and the restore. At several terabytes that window is long enough to rehearse before you promise anyone a date, and roles still have to be recreated by hand.

Extensions decide how much of the database leaves with you. AlloyDB has extensions of its own, among them google_columnar_engine and alloydb_scann, and neither is on Cloud SQL’s list. Cloud SQL has a few AlloyDB lacks, such as pg_qualstats and plpgsql_check. The audit is the same one pg_upgrade and extensions describes for a major-version move: list what each database actually uses, in every database.

SELECT extname, extversion
FROM pg_extension
WHERE extname <> 'plpgsql'
ORDER BY extname;

Anything on that list that the other service does not offer is either a reason to stay or work to remove before you move. Adopting an AlloyDB-only extension can be the right call, and it is also the point at which the way back stops being a migration and becomes a rewrite. Decide that on purpose.

Put every Postgres you run on autopilot.

We onboard teams in small batches. Tell us about your fleet and we will reach out when a seat opens. One email, no drip campaign.