Tom Jenkins <tjenkins@devis.com> writes:
> So looks like in pl/pgsql if you have ANALYZE statements you can
> (possibly) crash the server.
Ah. This is a variant of the "can't do VACUUM in a function" problem.
There's a test to prevent that in CVS tip...
regards, tom lane