Re: Record last SELECT on a row?

From: Greg Sabino Mullane <htamfids(at)gmail(dot)com>
To: Ron Johnson <ronljohnsonjr(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Record last SELECT on a row?
Date: 2025-12-17 17:13:33
Message-ID: CAKAnmmLLzi4eSRhj-g8JO8RFUrWwMaSmtrBSNtvqMOHCHquR+g@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Dec 17, 2025 at 10:24 AM Ron Johnson <ronljohnsonjr(at)gmail(dot)com>
wrote:

> pgaudit might satisfy your needs, since it would only log SELECT
> statements on that one table. You'd still have to grep the log file, so
> the information wouldn't be real-time, but that's *probably* not
> important.
>

That would only give you table-level information, unless it was a
dirt-simple query with no joins and an easy to parse where clause.

Cheers,
Greg

--
Crunchy Data - https://www.crunchydata.com
Enterprise Postgres Software Products & Tech Support

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thiemo Kellner 2025-12-17 17:14:33 Record last SELECT on a row?
Previous Message Joe Conway 2025-12-17 16:46:14 Re: Record last SELECT on a row?