pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #14617: Stetement terminator stored in pg_stat_statements
2+ messages / 2 participants
[nested] [flat]
* BUG #14617: Stetement terminator stored in pg_stat_statements
@ 2017-04-10 14:57 buschmann@nidsa.net
2017-04-10 16:30 ` Re: BUG #14617: Stetement terminator stored in pg_stat_statements Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: buschmann@nidsa.net @ 2017-04-10 14:57 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 14617
Logged by: Hans Buschmann
Email address: buschmann@nidsa.net
PostgreSQL version: 9.6.2
Operating system: Windows x64
Description:
I recently observed that the statement terminator (the semicolon) is stored
as part of the query column in pg_stat_tables.
When used programmatically (from Web application) the same statement has no
query separator and generates a separate entry in pg_stat_statements.
I observed it with a query like:
refresh materialized view my_mat_view;
which occurred twice when used interactively and by the program.
In my opinion the semicolon should be strapped before normalizing the query
for entry into pg_stat_statements.
--
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 #14617: Stetement terminator stored in pg_stat_statements
2017-04-10 14:57 BUG #14617: Stetement terminator stored in pg_stat_statements buschmann@nidsa.net
@ 2017-04-10 16:30 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2017-04-10 16:30 UTC (permalink / raw)
To: buschmann@nidsa.net; +Cc: pgsql-bugs
buschmann@nidsa.net writes:
> In my opinion the semicolon should be strapped before normalizing the query
> for entry into pg_stat_statements.
This has been changed already for v10, but we're not planning to
back-patch any such change into existing releases.
regards, tom lane
--
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:[~2017-04-10 16:30 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-04-10 14:57 BUG #14617: Stetement terminator stored in pg_stat_statements buschmann@nidsa.net
2017-04-10 16:30 ` Tom Lane <tgl@sss.pgh.pa.us>
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