Re: Review: query result history in psql - Mailing list pgsql-hackers

From Maciej Gajewski
Subject Re: Review: query result history in psql
Date
Msg-id CAEcSYXKzUgOTHFj1L0e=n95nY2Mo_ExgseYXFngrgJshwark0A@mail.gmail.com
Whole thread Raw
In response to Re: Review: query result history in psql  (Ian Link <ian@ilink.io>)
Responses Re: Review: query result history in psql
List pgsql-hackers
The query history is stored within the client, so once the user stops
the client, it is gone. But yes, it would be useful to have some tool
that would allow you to see what's in there.

I could be a command (\showans ?) that would list all :ansXXX
variables, together with the query text and  the size of the answer.
It would probably look ugly for very long queries, but could be useful
anyway.

I'm not sure if I'll be able to implement this feature any time soon,
as I'm very busy at the moment and going for a business trip in few
days.

In the meantime, I've applied your suggestions and moved the
sting-manipulating functions to stringutils. Also fixed a tiny bug.
Patch attached.

M

Attachment

pgsql-hackers by date:

Previous
From: Jeevan Chalke
Date:
Subject: Re: checking variadic "any" argument in parser - should be array
Next
From: "MauMau"
Date:
Subject: Re: pgsql_tmp and external sort