Q003warning

Unknown table

A table, CTE or table-valued function is not in the catalogue.

db/queries/example.sql:2:1: warning[Q003]: unknown table or view "author" in schema "public"
Printed by sgl from a small PostgreSQL reproduction project.

When it is reported

The catalogue is built by replaying your migrations. A table that no migration creates, or that a later migration drops, is unknown to the analyser.

How to fix it

Add the migration that creates the table, or fix the name.

In your terminal

$ sgl explain Q003

Look for UnknownTable in Seagull's source to see where it is reported.