我最近将我的Rails应用程序移到了Postgres,并注意到在开发日志中,它充满了如下SQL语句:
SQL (1.1ms) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"permissions"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
SQL (1.1ms) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"spaces"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
有人知道这是怎么回事吗,看起来像是表演上的成功?它是?
谢谢
最佳答案
您可以使用silent-postgresgem删除这些消息。
关于ruby-on-rails - Rails 3与Postgresql-嘈杂的数据库?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/4091781/