# Validation

Use these checks after installation.

## Service status

- `service postgresql status`
- `sockstat -4 -6 | grep postgres`

## Local connectivity

- `psql -U postgres -d postgres -c "select version();"`

## Expected healthy result

- PostgreSQL service reports running
- `postgres` accepts a local connection
- version output shows PostgreSQL 18

## After base validation

Only after the above is healthy:

1. install `pgvector`
2. create extension in the target database
3. snapshot before schema creation

## Restore validation

If deployment uses restore-from-dump, validate:

- target database exists
- restore command exits cleanly
- expected tables are present
- PostgreSQL still starts cleanly after restart
