Skip to content
All findings

Nile Postgres free tier (Dec 2026): pg_dump fails, COPY is rejected and backups are paid-only, so SELECT is the only way out; a standard schema loads 2 of 22 tables

Published 2 Dec 2026

You can't get data out of a Nile free database with standard tools: pg_dump fails on its setup query, COPY ... TO STDOUT is rejected, and backups are paid-only. A plain SELECT is the only export path: 1M rows (77 MB) took 59.1 s against a 60 s default statement_timeout. Getting data in is just as limited: COPY, sequences, functions, triggers, domains, partitions and materialized views are rejected, so a pg_dump-format schema (Pagila) loads 2 of its 22 tables.

What works: no card or phone (GitHub/Google sign-in only), no cold start, 540 concurrent connections, headless create/delete via API, CLI and MCP. Good for a new multi-tenant app on Nile's tenant model; skip it if you'll restore an existing schema or need a way out. Tested 2026-12-01, Free plan only.

log
pg_dump: error: query failed: ERROR:  setting search_path with set_config is not supportedpg_dump: detail: Query was: SELECT pg_catalog.set_config('search_path', '', false);ERROR:  copy command is not currently supportedERROR:  command tag CREATE SEQUENCE unhandledERROR:  Sequence manipulation function: nextval is not supportedERROR:  CREATE FUNCTION is not supportedERROR:  command tag EXPLAIN unhandled

| Test (Nile free, Azure eastus, client in India) | Result | |---|---| | pg_dump / COPY TO | both fail (errors above) | | Export 1M rows with SELECT | 59.1 s; SET statement_timeout = 0 first, or larger tables get cancelled | | Standard load (Pagila schema+data, \copy 1M rows, index, ANALYZE) | 196 errors; Pagila 2 of 22 tables; \copy rejected; "command tag ANALYZE unhandled" | | Workaround: 1M rows as 1,000-row INSERTs | 288.2 s | | Workaround: Pagila rewritten for Nile (script) | 45.2 s, row counts match the source | | Regions for a free workspace | AWS us-west-2, AWS eu-central-1, Azure eastus (no us-east-1) | | Server | PostgreSQL 15.20, shared (max_connections 1250), statement_timeout 60 s, idle_in_transaction_session_timeout 60 s, not superuser | | SELECT 1 p50 / p95 | 205 / 220 ms (almost all India→Virginia round trip) | | Fresh connection | median 1.47 s; 1.50 s after 12 min idle, 1.59 s after 64 min: no cold start | | Sessions held at once | 540 of 540 OK with 50 s holds (pricing page says 500); 60 s holds all hit ERROR: canceling statement due to statement timeout | | Free usage after all tests | 313,584 query tokens of 50M/month; storage 121.7 MB |

Per-query timings, extensions, the MCP tool list and signup detail: repro/NOTES.md. Raw logs: repro/canonical, repro/runs, repro/api.

pg_dump doesn't work on Nile's free tier, and nothing else exports either

Since Postgres 10.3 every pg_dump (any format, --schema-only included) starts with SELECT pg_catalog.set_config('search_path', '', false). Nile rejects it, so the dump stops before reading data. \copy big TO STDOUT and COPY (SELECT ...) TO STDOUT fail with copy command is not currently supported. Backups are "available for paid tiers only" (docs).

What works: psql -A -t -F, -c "select * from big" > big.csv wrote 1,000,000 lines in 59.1 s, one second under the 60 s timeout. On anything bigger run SET statement_timeout = 0; in the same session first (SET ... = 120000 also works). PGOPTIONS="-c statement_timeout=0" is silently ignored (SHOW still says 1min). Plan any move off Nile as per-table SELECTs, with the schema recreated from your migration files.

Nile rejects standard Postgres DDL: what loads and what doesn't

Free workspaces get "Sharded postgres" (a proxy over a shared server). A probe (log, log 2) gave:

| Works | Rejected (verbatim) | |---|---| | serial and GENERATED ALWAYS AS IDENTITY columns | CREATE SEQUENCE → command tag CREATE SEQUENCE unhandled | | uuid DEFAULT gen_random_uuid() | DEFAULT nextval('x_seq'::regclass) → Sequence manipulation function: nextval is not supported (setval too) | | CREATE TYPE ... AS ENUM, CREATE VIEW | CREATE FUNCTION is not supported, command tag CREATE TRIGGER unhandled, CREATE AGGREGATE, CREATE DOMAIN | | | CREATE TABLE ... PARTITION BY is not supported, command tag CREATE MATERIALIZED VIEW unhandled | | | EXPLAIN, ANALYZE, DO: command tag ... unhandled / DO is not supported | | | pg_database_size(current_database()) → database "pf_bench" does not exist |

The trap: serial works when you write it, but pg_dump and most schema exporters emit CREATE SEQUENCE plus DEFAULT nextval(...), which is rejected, so moving a schema from any other Postgres fails. Nile's compatibility page says CREATE SEQUENCE is "Supported for shared tables"; ours had no tenant_id (shared) and it was still rejected.

Also: a column typed public.mpaa_rating fails with type "public.mpaa_rating" does not exist even after creating that type; use unqualified names. Tenant tables (with tenant_id) have extra rules (no serial; see NOTES).

Loading data into Nile without COPY

The 1M-row load ran as 1,000 INSERTs of 1,000 rows: 288.2 s (log). nile db copy (CLI 1.3.0) is faster (6,341 rows/s for 100k rows) but always treats line 1 as a header, even with --column-list, so a header-less CSV silently loses its first row (99,999 rows, id = 1 missing, log). It also ignores CSV quoting.

Headless Nile provisioning: API key, CLI, MCP

The browser is needed once, to create a workspace API key (console → workspace → Security). Then (raw calls):

  • POST /workspaces/{ws}/databases → 201 "status":"READY" in 1.6 s; POST .../credentials → password in 1.1 s.
  • AWS_US_EAST_1 → 400 "This database type is not available in the selected region."; creating a workspace with the key → 403 "operation forbidden for API keys: createWorkspace".
  • NILE_API_KEY=... nile db create --name x --region AZURE_EASTUS (CLI 1.3.0) → READY in 2.4 s.
  • @niledatabase/nile-mcp-server 1.4.0 runs over stdio with NILE_API_KEY and NILE_WORKSPACE_SLUG; 11 tools including execute-sql.

Anonymous Nile Postgres 17 in us-east-1, and a restore hang (issue #899)

POST https://global.thenile.dev/databases/provision needs no account. With {"region":"AWS_US_EAST_1"} it returned, in 2.6 s, a plain PostgreSQL 17.12 database (user nile_superuser, max_connections 300, no statement timeout) plus a 24-hour claim token (response, password redacted). The docs' claim body {claimCode} is wrong (the API wants {claimDbSession}), and claiming into a free workspace fails anyway: 400 "This workspace supports sharded databases only."

Restoring Pagila there hung. After pg_dump's set_config('search_path', '', false), search_path grew with each statement, from "" to 14 double quotes, then 62 (log). A backend sat active on SET search_path TO '""""…' for over 14 minutes, and pg_cancel_backend() and pg_terminate_backend() returned t without stopping it. Filed as niledatabase/niledatabase#899. Until it's fixed, don't restore a pg_dump onto an anonymously provisioned Nile database.

Method and what's still open

Shared PeerFinds Postgres workload (scripts, outputs), Pagila commit 5ba5a57; Nile workarounds logged separately. Pending: 24 h and 8-day idle checks, and the anonymous database after its claim window. Outdated if Nile adds COPY, sequences or pg_dump support, free backups appear, or #899 is closed.