Skip site navigation (1) Skip section navigation (2)

Re: auto-explain does not work with JSON & csvlog

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Josh Berkus <josh(at)agliodbs(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: auto-explain does not work with JSON & csvlog
Date: 2010-07-18 16:02:23
Message-ID: 28686.1279468943@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugs
Josh Berkus <josh(at)agliodbs(dot)com> writes:
> With 9.0, the obvious thing to do with autoexplain is to log JSON or XML
> explain plans to a csvlog and then automatically process them.

> However, when I attempt to do this, I get the following warning at
> PostgreSQL startup time:

> Loaded module "auto_explain"
> Not safe to send CSV data

I wouldn't be too surprised if that happened on a one-time basis during
postmaster startup ...

> And on checking, auto-explain is indeed NOT sending anything to the
> csvlog.  It's not sending anything to the regular log, either.

... but this part sounds like it's probably a configuration mistake
on your part.

			regards, tom lane

In response to

pgsql-bugs by date

Next:From: Tom LaneDate: 2010-07-18 19:40:33
Subject: Re: BUG #5564: Odd behavior with aggregate_func(DISTINCT foo ORDER BY foo)
Previous:From: Josh BerkusDate: 2010-07-18 14:40:33
Subject: auto-explain does not work with JSON & csvlog

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group