Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vVv6J-009imT-1K for pgsql-general@arkaria.postgresql.org; Wed, 17 Dec 2025 17:14:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vVv6I-00Euhm-1F for pgsql-general@arkaria.postgresql.org; Wed, 17 Dec 2025 17:14:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vVv6I-00Euhd-0A for pgsql-general@lists.postgresql.org; Wed, 17 Dec 2025 17:14:10 +0000 Received: from mail-ot1-x336.google.com ([2607:f8b0:4864:20::336]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vVv6H-001BRW-17 for pgsql-general@postgresql.org; Wed, 17 Dec 2025 17:14:09 +0000 Received: by mail-ot1-x336.google.com with SMTP id 46e09a7af769-7c7bfba3996so3788520a34.0 for ; Wed, 17 Dec 2025 09:14:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1765991648; x=1766596448; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=rRkTgc2wfuOpkin/7yKaOKm/f6ksr7eETkWo1WlGdqk=; b=j0INpFxqZ+fpH2c7qUFkujElDpZiD9gxwcSMzN0wpOCYQS0vIw4TyWcZPk3Tlm1Feu cGKMH9ybMKZ6CUidwjGbmXhgZE8qjVVR5v6V90w+swd0FLBc2VNAJopyp8/2/ZIaAOQb AKsATn/6xFvuk0sKFebgg2T9UeYKD0WtXl4txD2V5VtUKx7mZqgPXhcOhyOhjdK6OMRh Zs/Y2yRYnCPxdbkssSdbxJaXqcmsZWNXb8c8brHx7nAvqsjigUG7YiSGlWskJz3Cm+fH /NicWuR2FrJtr6NyP4n+B9xnKKGIu3mL39oxobPlwGr9x9vt0WHVyAUddlOfeNuMV0z8 Oe9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765991648; x=1766596448; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=rRkTgc2wfuOpkin/7yKaOKm/f6ksr7eETkWo1WlGdqk=; b=DXrvnnFCdWQoBFx0rGWSwVHDVJr5dgYuGjaGbmwtixzxtVBcvvWL0DDOmUIkj+qIif wWVxVT5GmhsfLXrssVjockVuEZBZ60FJymCamNuQfQqZMIGXqm808mh4r8ZXj4lp1EQ9 1je0Qukw9bD9OXtg39GBM8oFRVf1uDPQfCUgnf8gX8wHYpesrxgYVkAzX3AR4BACMi/I RaqGjVNMeAL5K8P7SNQH8OhniHy/lpLjV7d4KaNiQfLiBdSJXaWaceMJdnzj8hQB7SNh 7HLsrCTLwVZYovVPvHPdKZeCT5Na/C/FeATe16tRKTYRVQTu/fxQilJCx+mw6dLN/l9V B0bw== X-Gm-Message-State: AOJu0YxDlTaL92nyd0ddrKzw1tarJEhlMb2x0L8UmEDdtVNrcQKRI/lC M7t84RLT7jhNQa79/4v0cEAVLa9WXZOcMA8T3etomkrToztG0ZnWTYozxLYddv8lN3FZWDCtpkP 51q3hv5V7RJq01sWnktBPbfOBRX98Ai0= X-Gm-Gg: AY/fxX4StMfWrJ0XoZnv7srHh2hBEXBUxVEoJeeS0UIx3+WIZPOkCV6vNnqeJyBPt4A rFSkPStoQC6Ry0l6gCoEWtEA435hFk48mSNOMMl+sjPcLkQmXw5wgMzxT4vGcUaWn34xmz0GhfZ S2eS7VGAwphS0mbpO9dWIVAtoa4g8Swkh1wHaVf9O/6n9TdAx3xt2pRtNrmk6Q6cbXcuvdY19uD 2EKH8Udmau60VOK/r5Hmli4f5FlQieJtJPzdJIGu6bnRcQlMxe9mTewPOn5Co/adtAYRG7zXFNa /UhHzfjk7ImJ745+sEMQxxVwMK0= X-Google-Smtp-Source: AGHT+IH21jhBQ+S/+0Iiat9lXsJ1M0KXT55PXcyFfgxlV4Vw6cP2kAk7aFDId0c2va7kPBi2uOCcCG+GbZ2swiMDbmI= X-Received: by 2002:a05:6820:1989:b0:65b:3249:dfc7 with SMTP id 006d021491bc7-65b4524d25dmr7323975eaf.83.1765991648181; Wed, 17 Dec 2025 09:14:08 -0800 (PST) MIME-Version: 1.0 References: <287E4DF6-35A2-4062-AEBA-32DB1DE35C5D@leisi.net> In-Reply-To: From: Greg Sabino Mullane Date: Wed, 17 Dec 2025 12:13:33 -0500 X-Gm-Features: AQt7F2qjeao3Er9sFURwPNKKhj67UljWQblc46MfQKIobeU5QuMl1-LSfkXkBTA Message-ID: Subject: Re: Record last SELECT on a row? To: Ron Johnson Cc: pgsql-general Content-Type: multipart/alternative; boundary="000000000000ddc328064628f852" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000ddc328064628f852 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Dec 17, 2025 at 10:24=E2=80=AFAM Ron Johnson 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 --000000000000ddc328064628f852 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Dec 17, 2025 at 10:24=E2=80=AFAM = Ron Johnson <ronljohnsonjr@gm= ail.com> wrote:
pgaudit might satisfy your needs, since it would only log SELECT= statements on that one table.=C2=A0 You'd still have to grep the log f= ile, so the information wouldn't be real-time, but that's probab= ly=C2=A0not important.

That= would only give you table-level information, unless it was a dirt-simple q= uery with no joins and an easy to parse where clause.
=C2=A0
Che= ers,
Greg

--
Crunchy Data - https://www.crunchy= data.com
Enterprise Postgres Software Products & Tech Sup= port

--000000000000ddc328064628f852--