Fixed
Status Update
Comments
ju...@google.com <ju...@google.com> #2
I have a tech partner (Neudesic) who could really use this feature... Any sense if/when this might be supported?
ma...@google.com <ma...@google.com> #3
je...@greensync.com.au <je...@greensync.com.au> #4
Is this being worked on?
[Deleted User] <[Deleted User]> #5
+1 this is practically a dealbreaker for us. RDS exposes every option in postgres.conf, I have no idea why GCP only exposes a tiny subset of flags.
If we aren't allowed access to postgres.conf directly, we need these options exposed. How am I supposed to debug slow queries on our DB server if I can't even log them?
If we aren't allowed access to postgres.conf directly, we need these options exposed. How am I supposed to debug slow queries on our DB server if I can't even log them?
[Deleted User] <[Deleted User]> #6
+1 - this is a real surprise as it's basic DBA functionality
[Deleted User] <[Deleted User]> #7
any update on this? seems like a strong reason to switch to rds, a db without logs is like a car without a speedometer :(
gl...@gtempaccount.com <gl...@gtempaccount.com> #8
+1 this a real problem for us also
Please provide an update on the current status of this issue, it has been several months now
Please provide an update on the current status of this issue, it has been several months now
ke...@google.com <ke...@google.com> #9
+1 customer from fintech space
kk...@scbw.com <kk...@scbw.com> #10
Same here..
[Deleted User] <[Deleted User]> #11
+1 everyone needs slow query log
sa...@timespace.co <sa...@timespace.co> #12
+1 we need this, too
ma...@templarbit.com <ma...@templarbit.com> #13
+1 Surprised to learn that slow query logs are not supported.
ma...@mattis.me <ma...@mattis.me> #14
This is highly important for us as we are having performance issues and no way real way to see what's not working well.
[Deleted User] <[Deleted User]> #15
+1 we need it as well
bo...@staal.io <bo...@staal.io> #16
+1
hu...@gmail.com <hu...@gmail.com> #17
+1
ri...@gmail.com <ri...@gmail.com> #18
+1 I have the difficulty with performance debugging as well
[Deleted User] <[Deleted User]> #19
+1
[Deleted User] <[Deleted User]> #20
+1
ja...@gmail.com <ja...@gmail.com> #21
+1
co...@oxixo.com <co...@oxixo.com> #22
+1
le...@unitx.co.za <le...@unitx.co.za> #23
+1
jo...@gmail.com <jo...@gmail.com> #24
+1
ro...@mailtop.com.br <ro...@mailtop.com.br> #25
+1
ev...@looklet.com <ev...@looklet.com> #26
+1
st...@google.com <st...@google.com> #27
+1
an...@gmail.com <an...@gmail.com> #28
+1
wi...@sparx.co.uk <wi...@sparx.co.uk> #29
+1
jo...@vidio.com <jo...@vidio.com> #30
+1
[Deleted User] <[Deleted User]> #31
+1
[Deleted User] <[Deleted User]> #32
+1
[Deleted User] <[Deleted User]> #33
+1
de...@gmail.com <de...@gmail.com> #34
+1
bu...@gmail.com <bu...@gmail.com> #35
+1
lu...@gmail.com <lu...@gmail.com> #36
+1, having performance issues and need to trace slow queries
se...@indigitall.nubalia.com <se...@indigitall.nubalia.com> #37
+1
jn...@gmail.com <jn...@gmail.com> #38
+1
wi...@bexrealty.com <wi...@bexrealty.com> #39
+1
sa...@veolia.com <sa...@veolia.com> #40
+1
se...@arengu.com <se...@arengu.com> #41
+1
mo...@genieacademy.com <mo...@genieacademy.com> #42
+1
ja...@oden.io <ja...@oden.io> #43
+1. Would be huge to have the auto_explain module.
I'd like to emphasize that this feature request should be not only about logging slow queries, but also about logging the query execution plans. The latter is what makes the auto_explain module so great, as compared to pg_stat_statements.
I'd like to emphasize that this feature request should be not only about logging slow queries, but also about logging the query execution plans. The latter is what makes the auto_explain module so great, as compared to pg_stat_statements.
gl...@gtempaccount.com <gl...@gtempaccount.com> #44
@here - some form of acknowledgement that this is a problem and is on a roadmap somewhere would be appreciated!
You are going to lose customers over the lack of a feature like this - particularly when Azure are doing some pretty interesting things with their performance tracking of queries...
https://docs.microsoft.com/en-us/azure/postgresql/concepts-query-performance-insight
You are going to lose customers over the lack of a feature like this - particularly when Azure are doing some pretty interesting things with their performance tracking of queries...
zs...@gmail.com <zs...@gmail.com> #45
+1
[Deleted User] <[Deleted User]> #46
This is a dealbreaker for us as well.
[Deleted User] <[Deleted User]> #47
+1
ke...@gmail.com <ke...@gmail.com> #48
+1
ma...@gmail.com <ma...@gmail.com> #49
+1
[Deleted User] <[Deleted User]> #50
+1
at...@nobul.com <at...@nobul.com> #51
+1
m....@etechconsulting-mg.com <m....@etechconsulting-mg.com> #52
+1
[Deleted User] <[Deleted User]> #53
+1
[Deleted User] <[Deleted User]> #54
Good news - this has been addressed. From the cloud SQL release notes (https://cloud.google.com/sql/docs/release-notes ):
> April 3, 2019
>
> Support added for 122 MySQL flags and 96 Postgres flags
The supported flags for psql (https://cloud.google.com/sql/docs/postgres/flags ) include log_min_duration_statement.
We confirmed it works by adding the following block to a google_sql_database_instance resource in our terraform code:
> April 3, 2019
>
> Support added for 122 MySQL flags and 96 Postgres flags
The supported flags for psql (
We confirmed it works by adding the following block to a google_sql_database_instance resource in our terraform code:
le...@gmail.com <le...@gmail.com> #55
Have you try with 'create extension pg_stat_statements' for postgresql?
an...@gmail.com <an...@gmail.com> #56
+1
nn...@oden.io <nn...@oden.io> #57
While technically this feature has been enabled, it has been enabled in possibly the single least useful fashion possible. You can, in fact, turn on the log_min_duration_statement flag, and that does enable postgres slow query logs. So far so good, right?
Except that postgres query logs can include newlines, and whatever system google is using to export pg logs to stackdriver is not doing multiline matching. So each line of the log gets its own stackdriver logging event. And the query duration is not extracted as a field, so there is no straightforward way to set up a log-based metric from it.
This is technically better than nothing but only in the narrowest sense possible: there is no way to capture/export entire slow query events for alerting/analysis except by exporting the entire log and writing one's own postprocessor.
This is a really disappointing "fix" for an issue that is basic functionality for a hosted sql db and which took over a _year_ to implement.
Except that postgres query logs can include newlines, and whatever system google is using to export pg logs to stackdriver is not doing multiline matching. So each line of the log gets its own stackdriver logging event. And the query duration is not extracted as a field, so there is no straightforward way to set up a log-based metric from it.
This is technically better than nothing but only in the narrowest sense possible: there is no way to capture/export entire slow query events for alerting/analysis except by exporting the entire log and writing one's own postprocessor.
This is a really disappointing "fix" for an issue that is basic functionality for a hosted sql db and which took over a _year_ to implement.
[Deleted User] <[Deleted User]> #58
^ +1
Don't want to seem rude or needy, but this feature (and some others basics) are by default in every competitors and even when no UI it's still more usable than stackdriver. We have to pay an additional service to do this, on top of the already very expensive cloud sql instance :/
Don't want to seem rude or needy, but this feature (and some others basics) are by default in every competitors and even when no UI it's still more usable than stackdriver. We have to pay an additional service to do this, on top of the already very expensive cloud sql instance :/
er...@gmail.com <er...@gmail.com> #59
As far as I knew PostgreSQL database flags are already configurable, ref: https://cloud.google.com/sql/docs/postgres/flags .
Therefore this ticket can be closed?
Therefore this ticket can be closed?
[Deleted User] <[Deleted User]> #60
Me, too!
ne...@gmail.com <ne...@gmail.com> #61
+1
th...@mirakl.com <th...@mirakl.com> #62
+1
[Deleted User] <[Deleted User]> #63
I don't think having slow logs sent to a system that doesn't digest them correctly (re the multiline issue) counts as supporting slow query logs. I do not think this should be closed.
ka...@gmail.com <ka...@gmail.com> #64
+1
[Deleted User] <[Deleted User]> #65
+1 to multiline support. The lack of structure of the logs also makes alerting extermely difficult, and it also makes creating log exclusions to control log volume (and therefore cost) nearly impossible.
ch...@avondalepark.com <ch...@avondalepark.com> #66
+1
[Deleted User] <[Deleted User]> #67
+1
nn...@oden.io <nn...@oden.io> #68
It is now over two years since this bug was opened, and approaching a year since I pointed out that slow query logging as implemented is entirely useless, and it remains just as useless. (And auto_explain is still MIA, as are a long list of features that would be required merely for feature parity with GCP MySQL never mind Amazon RDS.)
Does anyone at google actually use this product or is it here because Amazon and Azure both offer it so therefore it's a checkbox that has to be checked when bidding on large contracts? I'm currently scoping out a project to migrate from CloudSQL to self-managed postgres on kubernetes because we have been waiting years for _basic_ features to be implemented and it's crystal clear at this point that there is no timeline and no interest.
Does anyone at google actually use this product or is it here because Amazon and Azure both offer it so therefore it's a checkbox that has to be checked when bidding on large contracts? I'm currently scoping out a project to migrate from CloudSQL to self-managed postgres on kubernetes because we have been waiting years for _basic_ features to be implemented and it's crystal clear at this point that there is no timeline and no interest.
an...@mailosaur.com <an...@mailosaur.com> #69
Comment has been deleted.
wa...@inaccord.com <wa...@inaccord.com> #70
impossible to build a dashboard to identify the slow queries. Assuming this is because there's a lack of multi-line support?
kn...@google.com <kn...@google.com>
mw...@google.com <mw...@google.com> #71
+1. This is a deal blocker for my client. Newlines are resulting in customer not able to get any value out of slow query log entries. This will result in them not 'certifying' Cloud SQL PostgreSQL use in their environment and thus block migration and net new opportunities.
je...@gmail.com <je...@gmail.com> #72
I don't think anyone at google actually reads these issues. It's hilarious that something so trivial hasn't been addressed after years.
nn...@oden.io <nn...@oden.io> #73
FWIW, the "Query Insights" feature (https://cloud.google.com/sql/docs/postgres/insights-overview ) now covers a lot of this, although I still know of no way to easily extract multi-line postgres logs from google logging.
ba...@google.com <ba...@google.com> #74
Cloud SQL for PostgreSQL has enhanced the support for multiline log entries in postgres.log. Before, when a log entry spanned multiple lines, each line was recorded as a separate entry in Cloud Logging. The lines are now recorded as a single entry in Cloud Logging for ease of query and processing. https://cloud.google.com/sql/docs/postgres/release-notes#September_14_2021
cm...@google.com <cm...@google.com> #75
It seems that this problem is still there for mySql. any advice? thanks
ba...@google.com <ba...@google.com> #76
Please see the long_query_time flag for MySQL.
Description
Current Cloud SQL postgre instances do not support slow query logs making investigation on slow performance queries difficult.
Desired behaviour:
Allow users to enable slow query logs or similar functionality to improve slow query and/or performance investigations