[GENERAL] Limiting the amount of data in a variable when logging slow queries - Mailing list pgsql-general

From Brett Delle Grazie
Subject [GENERAL] Limiting the amount of data in a variable when logging slow queries
Date
Msg-id CACLD0=4i0ok16tfeCGsPujTM+nrQ-DGq+efPVKiWF6LjprwWAg@mail.gmail.com
Whole thread Raw
Responses Re: [GENERAL] Limiting the amount of data in a variable when logging slow queries  (Brett Delle Grazie <brett.dellegrazie@gmail.com>)
List pgsql-general
Hi,

We've enabled the slow query log and have a particular query that is executing an insert against a table containing a binary array column.

Given the content being stored is upwards of 100MB+ this leads to very long log messages for the slow query log.

Is there a way of having the slow query log only output the first 'n' bytes of a byte array and/or exempting this particular insert?

Thanks,

--
Kind regards,

Brett Delle Grazie

pgsql-general by date:

Previous
From: Akshay Joshi
Date:
Subject: Re: [GENERAL] pgAdmin4 needs information of v10 SCRAM authentication
Next
From: George Neuner
Date:
Subject: Re: [GENERAL] full text search on hstore or json with materialized view?