Troubleshooting
The failures people actually hit, what each one means, and the fix.
relation “users” does not exist
Safeslice copies rows, not table definitions. The target needs the same schema, created by your own migrations or copied from the source.
The wizard offers to copy it with pg_dump --schema-only when the target is empty. On the command line, run your migrations against the target first.
no rows matched in public.users; check —where
The predicate matched nothing, so there was nothing to slice from. Test it directly:
SELECT count(*) FROM users WHERE created_at > '2026-01-01';
strict mode: N text columns hold unreviewed text
This is Safeslice working. Every listed column is a decision you still owe: give it keep, redact or secret in safeslice.yaml.
To scope strictness to the tables that actually hold personal data:
mask:
pii_tables: [users, tickets, payments]
column X is UNIQUE and NOT NULL: redact would write the same empty value into every row
redact empties a column, and an empty string cannot appear twice under a unique index. Use secret, which generates a distinct value per row.
table X has no primary key, so its rows cannot be identified
The walk identifies rows by primary key. Add one, or exclude the table.
pg_dump failed / pg_dump is not installed
Schema copying needs the PostgreSQL client tools, and pg_dump must be at least as new as the server. Install them, or create the schema with your own migrations and choose Use an existing database.
The demo container will not start
A container left by an older Safeslice can carry a mount that no longer resolves. Current versions recreate it automatically; if you are on an older one:
docker rm -f safeslice-demo
could not connect to PostgreSQL
The wizard narrows this for you and keeps the driver’s own message one keystroke away. The usual causes, in order: the server is not running, the port is wrong, the database does not exist, or authentication failed.
The arrow keys do not move the selection
You are on a build without arrow-key support, or in a terminal that will not enter raw mode. Look at the line under the menu: ↑↓ to move · enter to choose means arrows are active. Otherwise type the number and press enter — that always works, including under a pipe.
The slice is smaller than expected
Almost always an unenforced relationship. Safeslice reports these after every run:
⚠ comments.commentable_id (polymorphic, with commentable_type) — no foreign key
Declare the ones that matter as virtual_keys.