Fix some warnings
Merge branch 'postgres' into mysql