Check foreign keys missing index
npm install check-fk-missing-index!node-current
!GitHub package.json version
!GitHub Workflow Status (with branch)
Check foreign keys missing index in Postgres
PostgreSQL automatically creates indexes on primary keys and unique constraints, but not on foreign keys.
So I created a command to find the columns that maybe are in need of an index. It's up to you.
``bash`
npx check-fk-missing-index
`bash
Usage: check-fk-missing-index [options]
Options:
-V, --version output the version number
--format
--host
--port
--username
--database
--password
--no-fail return code 0 on exit
-h, --help display help for command
``