pg_stat_statement normalization fails due to temporary tables - Mailing list pgsql-hackers

From Andres Freund
Subject pg_stat_statement normalization fails due to temporary tables
Date
Msg-id 20141202130720.GF2456@alap3.anarazel.de
Whole thread Raw
Responses Re: pg_stat_statement normalization fails due to temporary tables  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi,

pg_stat_statement's query normalization fails when temporary tables are
used in a query. That's because JumbleRangeTable() uses the relid in the
RTE to build the query fingerprint. I think in this case pgss from 9.1
actually would do better than 9.2+ as the hash lookup previously didn't
use the relid.

I don't really have a good idea about fixing this though. The best thing
that comes to mind is simply use eref->aliasname for the
disambiguation...

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



pgsql-hackers by date:

Previous
From: "Tomas Vondra"
Date:
Subject: Re: excessive amounts of consumed memory (RSS), triggering OOM killer
Next
From: Alex Shulgin
Date:
Subject: Re: Turning recovery.conf into GUCs