pg.ddx.io pgsql-bugs@postgresql.org mailing list archivehelp / color / mirror / Atom feed
BUG #14694: Long binded parameter value in the postgres log 2+ messages / 2 participants [nested] [flat]
* BUG #14694: Long binded parameter value in the postgres log @ 2017-06-07 07:25 nikolay.nikitin@infowatch.com 2017-06-07 16:39 ` Re: BUG #14694: Long binded parameter value in the postgres log Pavel Stehule <pavel.stehule@gmail.com> 0 siblings, 1 reply; 2+ messages in thread From: nikolay.nikitin@infowatch.com @ 2017-06-07 07:25 UTC (permalink / raw) To: pgsql-bugs The following bug has been logged on the website: Bug reference: 14694 Logged by: Nikolay Nikitin Email address: nikolay.nikitin@infowatch.com PostgreSQL version: 9.6.3 Operating system: Red Hat Enterprise Linux Server release 6.7 Description: Hi! We insert many rows with long text and bytea (about 500 MB) values. In the postgres config we set log_min_duration_statement to 120 seconds. If this statements work more 120 seconds then they will be written into the postgres log with parameter values. As a result, the postgres log increases by 500MB for each statement. I think the postgres should have a "max bind value size" parameter. If a bind value is bigger then this parameter, it will be truncated. And in the log its real size and its truncated part will be written. Regards, Nikolay. -- 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 #14694: Long binded parameter value in the postgres log 2017-06-07 07:25 BUG #14694: Long binded parameter value in the postgres log nikolay.nikitin@infowatch.com @ 2017-06-07 16:39 ` Pavel Stehule <pavel.stehule@gmail.com> 0 siblings, 0 replies; 2+ messages in thread From: Pavel Stehule @ 2017-06-07 16:39 UTC (permalink / raw) To: nikolay.nikitin@infowatch.com; +Cc: pgsql-bugs Hi 2017-06-07 9:25 GMT+02:00 <nikolay.nikitin@infowatch.com>: > The following bug has been logged on the website: > > Bug reference: 14694 > Logged by: Nikolay Nikitin > Email address: nikolay.nikitin@infowatch.com > PostgreSQL version: 9.6.3 > Operating system: Red Hat Enterprise Linux Server release 6.7 > Description: > > Hi! > > We insert many rows with long text and bytea (about 500 MB) values. In the > postgres config we set log_min_duration_statement to 120 seconds. > If this statements work more 120 seconds then they will be written into the > postgres log with parameter values. > As a result, the postgres log increases by 500MB for each statement. > > I think the postgres should have a "max bind value size" parameter. If a > bind value is bigger then this parameter, it will be truncated. > And in the log its real size and its truncated part will be written. > It is not a bug - although it is great very practical idea. Please, send it to pgsql-hackers@postgresql.org mailing list. Regards Pavel Regards, > Nikolay. > > > -- > 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-06-07 16:39 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2017-06-07 07:25 BUG #14694: Long binded parameter value in the postgres log nikolay.nikitin@infowatch.com 2017-06-07 16:39 ` Pavel Stehule <pavel.stehule@gmail.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