check pg connection when preparing the resource

add missing source file

(0) -300 -100 -30 -10 -2 +2 +10 +30 tip

mercurial