Re: [HACKERS] BUG: pg_stat_statements query normalization issueswith combined queries

Поиск
Список
Период
Сортировка
Искать
От
Kyotaro HORIGUCHI
Тема
Re: [HACKERS] BUG: pg_stat_statements query normalization issueswith combined queries
Дата
Msg-id
20170113.173511.68264015.horiguchi.kyotaro@lab.ntt.co.jp
Ответ на
Список
Дерево обсуждения
[HACKERS] BUG: pg_stat_statements query normalization issues with combinedqueries Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] BUG: pg_stat_statements query normalization issueswith combined queries Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] BUG: pg_stat_statements query normalization issueswith combined queries Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] BUG: pg_stat_statements query normalization issueswith combined queries Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] BUG: pg_stat_statements query normalization issues withcombined queries Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] BUG: pg_stat_statements query normalization issueswith combined queries Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: [HACKERS] BUG: pg_stat_statements query normalization issueswith combined queries Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] BUG: pg_stat_statements query normalization issueswith combined queries Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: [HACKERS] BUG: pg_stat_statements query normalization issueswith combined queries Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] BUG: pg_stat_statements query normalization issueswith combined queries Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] BUG: pg_stat_statements query normalization issueswith combined queries Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] BUG: pg_stat_statements query normalization issues withcombined queries Craig Ringer <craig.ringer@2ndquadrant.com>
Re: [HACKERS] BUG: pg_stat_statements query normalization issueswith combined queries Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] BUG: pg_stat_statements query normalization issueswith combined queries Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: [HACKERS] BUG: pg_stat_statements query normalization issueswith combined queries Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: [HACKERS] BUG: pg_stat_statements query normalization issueswith combined queries Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] BUG: pg_stat_statements query normalization issueswith combined queries Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] BUG: pg_stat_statements query normalization issues with combined queries Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] BUG: pg_stat_statements query normalization issueswith combined queries Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] BUG: pg_stat_statements query normalization issues with combined queries Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] BUG: pg_stat_statements query normalization issueswith combined queries Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] BUG: pg_stat_statements query normalization issueswith combined queries Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] BUG: pg_stat_statements query normalization issueswith combined queries Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: [HACKERS] BUG: pg_stat_statements query normalization issues with combined queries Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] BUG: pg_stat_statements query normalization issueswith combined queries Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] BUG: pg_stat_statements query normalization issues with combined queries Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] BUG: pg_stat_statements query normalization issues with combined queries Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] BUG: pg_stat_statements query normalization issueswith combined queries Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] BUG: pg_stat_statements query normalization issueswith combined queries Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: [HACKERS] BUG: pg_stat_statements query normalization issueswith combined queries Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] BUG: pg_stat_statements query normalization issueswith combined queries Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: [HACKERS] BUG: pg_stat_statements query normalization issues with combined queries Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] BUG: pg_stat_statements query normalization issues withcombined queries Craig Ringer <craig.ringer@2ndquadrant.com>
Re: [HACKERS] BUG: pg_stat_statements query normalization issueswith combined queries Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] BUG: pg_stat_statements query normalization issues withcombined queries Craig Ringer <craig.ringer@2ndquadrant.com>
Re: [HACKERS] BUG: pg_stat_statements query normalization issues withcombined queries Craig Ringer <craig.ringer@2ndquadrant.com>
Hello,

At Thu, 12 Jan 2017 20:08:54 +0100 (CET), Fabien COELHO  wrote in 
> 
> About having a pointer to the initial string from RawStmt, Query &
> PlannedStmt:
> 
> > I remembered one reason why we haven't done this: it's unclear how
> > we'd handle copying if we do it. If, say, Query contains a "char *"
> > pointer then you'd expect copyObject() to pstrdup that string, [...,
> > So] We'd need to work out a way of managing multiple Queries carrying
> > references to the same source string, and it's not clear how to do
> > that reasonably.
> 
> For me it would be shared, but then it may break some memory
> management hypothesis downstream.

+1 to they have a pointer to the shared query string. But doing
that without some measure like reference counting seems
difficult..

regards,

-- 
Kyotaro Horiguchi
NTT Open Source Software Center




В списке pgsql-hackers по дате отправления
От: Kyotaro HORIGUCHI
Дата:
От: Gilles Darold
Дата:
FAQ