O
O
Oleg Petrov2017-10-06 10:29:13
PostgreSQL
Oleg Petrov, 2017-10-06 10:29:13

How to get more characters in a cell when querying?

Good afternoon.
I am making a query in the Postgresql database to find out queries against my database.
SELECT * FROM pg_stat_activity;
Below is a list of columns with queries
59d73065105de772199937.png
. In the column called current_query_text, some queries do not fit - apparently there is a limit on the number of characters in a cell. As a result, requests are cut off. How can I remove the character limit?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Melkij, 2017-10-06
@melkij

pg_stat_activity.query is capped at the top by the configuration parameter track_activity_query_size. Default is 1024 bytes.
PS: current_query was called before postgresql 9.2, which is already EOL for a long time and 9.2 itself is already EOL. Plan for an update.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question