pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #9050: pg_stat_statements() contains rows with the same dbid, userid and query
2+ messages / 2 participants
[nested] [flat]
* BUG #9050: pg_stat_statements() contains rows with the same dbid, userid and query
@ 2014-01-31 08:18 bashtanov@imap.cc
2014-01-31 08:27 ` Re: BUG #9050: pg_stat_statements() contains rows with the same dbid, userid and query Peter Geoghegan <pg@heroku.com>
0 siblings, 1 reply; 2+ messages in thread
From: bashtanov@imap.cc @ 2014-01-31 08:18 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 9050
Logged by: Alexey Bashtanov
Email address: bashtanov@imap.cc
PostgreSQL version: 9.3.1
Operating system: Linux
Description:
hello!
such a query run under superuser produces non-empty result:
select userid, dbid, query from pg_stat_statements() group by 1,2,3 having
count(1) > 1;
I am not sure how to reproduce it, but it can be reproduced only on those
instances having several databases on it.
Regards, Alexey
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #9050: pg_stat_statements() contains rows with the same dbid, userid and query
2014-01-31 08:18 BUG #9050: pg_stat_statements() contains rows with the same dbid, userid and query bashtanov@imap.cc
@ 2014-01-31 08:27 ` Peter Geoghegan <pg@heroku.com>
0 siblings, 0 replies; 2+ messages in thread
From: Peter Geoghegan @ 2014-01-31 08:27 UTC (permalink / raw)
To: bashtanov@imap.cc; +Cc: pgsql-bugs
On Fri, Jan 31, 2014 at 12:18 AM, <bashtanov@imap.cc> wrote:
> such a query run under superuser produces non-empty result:
>
> select userid, dbid, query from pg_stat_statements() group by 1,2,3 having
> count(1) > 1;
Did you drop and recreate the table? That counts as a distinct table
and distinct query as far as pg_stat_statements is concerned.
--
Peter Geoghegan
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2014-01-31 08:27 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-01-31 08:18 BUG #9050: pg_stat_statements() contains rows with the same dbid, userid and query bashtanov@imap.cc
2014-01-31 08:27 ` Peter Geoghegan <pg@heroku.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox