Bug 888546
| Summary: | select count(*) from null in postgres log | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [JBoss] JBoss Operations Network | Reporter: | Viet Nguyen <vnguyen> | ||||||
| Component: | Database | Assignee: | Thomas Segismont <tsegismo> | ||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Armine Hovsepyan <ahovsepy> | ||||||
| Severity: | low | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | JON 3.1.2 | CC: | hrupp, mfoley, mkoci, myarboro, tsegismo, vnguyen | ||||||
| Target Milestone: | ER01 | ||||||||
| Target Release: | JON 3.3.0 | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2014-12-11 14:03:00 UTC | Type: | Bug | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
|
Description
Viet Nguyen
2012-12-18 21:09:45 UTC
Created attachment 665757 [details]
postgresql log. go to 15:08:49
Created attachment 665758 [details]
rhq server log
This is very likely created by postgres instrumentation or postgres plugin The connection log shows: 2012-12-18 15:08:48 EST 50d0cd50.10ba postgres LOG: execute <unnamed>: select relname from pg_stat_user_tables and then 2012-12-18 15:08:49 EST 50d0cd50.10ba postgres ERROR: syntax error at or near "null" at character 22 2012-12-18 15:08:49 EST 50d0cd50.10ba postgres STATEMENT: SELECT COUNT(*) FROM null 2012-12-18 15:08:49 EST 50d0cd4b.10b0 postgres LOG: execute <unnamed>: select relname from pg_stat_user_tables 2012-12-18 15:08:49 EST 50d0cd4b.10b0 postgres ERROR: syntax error at or near "null" at character 22 2012-12-18 15:08:49 EST 50d0cd4b.10b0 postgres STATEMENT: SELECT COUNT(*) FROM null Note, all those entries have the same connection id. As the postgres plugin has both "select relname from pg_stat_user_tables" and "SELECT COUNT(*) FROM" defined, this is most likely. Note for a fix that "select count(*) may be very expensive on postgres and should be omitted". Viet: can you try with the postgres plugin "disabled" Tried the steps above and could not reproduce. There has been a lot of Postgres plugin work in master before 3.3 branch was cut-off. Moving to VERIFIED. Tested both on JON 3.3.0 ER01 and JON 3.2.0 GA. The warning in question is never logged in postgresql log file. Version:3.3.0.ER01 Build Number:23b3476:f3aa7e7 |