NK013 for an unsupported COPY form
Compare the statement with the implemented COPY
limits. In particular, COPY TO and file-based COPY do not support sharded or reference tables. COPY FROM STDIN supports both, subject to its shard-key, option, and default-value
requirements.
COPY FROM STDIN against a sharded table is also rejected while that table has
an enabled global secondary index (GSI). COPY does not maintain the GSI lookup
rows, so allowing it would make indexed reads incomplete. Load the rows before
enabling the GSI, then backfill and verify the lookup table before cutover, or
use supported INSERT statements that maintain the index.
For pg_restore, restore into an unsharded Neki database. Moving the imported
rows into a sharded layout is a separate data migration
workflow.
An extension cannot be created
Preserve the extension name and the firstpg_restore error. Compare the
source extension inventory from pg_extension with the target configuration
profile’s Extensions tab. An extension reported by
pg_available_extensions but absent from the dashboard catalog is not
supported for customer use on Neki.
If the extension is supported, complete any required profile-level enablement
and wait for the configuration change before retrying on a fresh target. If it
is not supported, stop the restore and determine whether the dependent schema
objects and data can be migrated without it. Do not continue after
--exit-on-error stops the restore.
Owner, role, or privilege errors
Use--no-owner --no-privileges for the dump-and-restore path. Create
application roles through PlanetScale, then apply only the grants those roles
need after the restore. Do not create or depend on source superuser roles.
A retry fails against a partially restored target
Create a fresh Neki target and repeat the restore. Do not use a cleanup script that drops and recreates thepublic schema; doing so can remove Neki-managed
objects required by the cluster.

