Skip to content

Database

PGX Error: Cannot scan unknown type

You probably end up here because you saw this error returned from jackc/pgx

cannot scan unknown type (OID 16458) in text format into *[]recipe.CategoryType

This error is connected with custom database types, so if this is what you did, this article is for you.