Greg Smith <greg@2ndquadrant.com> writes:
> I'm behind on my list mail so maybe this has been mentioned already, but
> when I just tried pg_stat_bgwriter from a build against today's HEAD I
> got this:
> pgbench=# select count(*) FROM pg_stat_bgwriter;
> ERROR: did not find '}' at end of input node
Worksforme. You probably need a full recompile and/or initdb.
This is a typical symptom when someone adds a field to a parse node
type and you have code or stored rules that haven't been updated.
(Usually though we try to bump catversion when an initdb is needed
because of such a change.)
regards, tom lane