On 2020-10-27 17:46:59 +0100, Eudald Valcàrcel Lacasa wrote: > I've run the automated script several times, and the duration of the > query is widely variable. > [0.005 s vs. 1500 s for the same plan] > As you can see, they don't seem to differ between each other, but the > duration is abismaly different. > I have the database logging everything, what should I look for so that > it can help me understand this strange behavior? You might want to turn auto_explain.log_analyze and auto_explain.log_buffers on. You probably should do this only on a test system, not the production system as the manual states that auto_explain.log_analyze "can have an extremely negative impact on performance". hp -- _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | hjp@xxxxxx | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!"
Attachment:
signature.asc
Description: PGP signature