✅ Eugene lint report
Script name: examples/E5/bad/1.sql
This is a human readable SQL lint report generated by eugene. Keep in mind that lint rules can be ignored in the following two ways:
- By appending comment directives like
-- eugene: ignore E123to the SQL statement. - By passing
--ignore E123on the command line.
✅ Statement number 1
-- 1.sql
create table prices (
id integer generated always as identity
primary key,
price int not null
)
❌ Eugene lint report
Script name: examples/E5/bad/2.sql
This is a human readable SQL lint report generated by eugene. Keep in mind that lint rules can be ignored in the following two ways:
- By appending comment directives like
-- eugene: ignore E123to the SQL statement. - By passing
--ignore E123on the command line.
✅ Statement number 1
-- 2.sql
set local lock_timeout = '2s'
❌ Statement number 2
alter table prices
alter price set data type bigint
Triggered rules
E5: Type change requiring table rewrite
Changed type of column price to pg_catalog.int8 in .prices. This operation requires a full table rewrite with AccessExclusiveLock if pg_catalog.int8 is not binary compatible with the previous type of price. Prefer adding a new column with the new type, then dropping/renaming..