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 1vVqsE-0097Gq-0y for pgsql-general@arkaria.postgresql.org; Wed, 17 Dec 2025 12:43:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vVqsB-00CkOD-1D for pgsql-general@arkaria.postgresql.org; Wed, 17 Dec 2025 12:43:20 +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 1vVqsB-00CkNy-07 for pgsql-general@lists.postgresql.org; Wed, 17 Dec 2025 12:43:19 +0000 Received: from mail-oo1-xc2a.google.com ([2607:f8b0:4864:20::c2a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vVqsA-00198n-0U for pgsql-general@lists.postgresql.org; Wed, 17 Dec 2025 12:43:18 +0000 Received: by mail-oo1-xc2a.google.com with SMTP id 006d021491bc7-657490df6f3so3224726eaf.2 for ; Wed, 17 Dec 2025 04:43:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1765975397; x=1766580197; darn=lists.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=sIdZAO8P3dgM92b27/S5f8OS07N3DrYmohCiR/2BE+U=; b=RvXBt4zftgmhRfaosYHRdw6ClpTVfs+B2kx52kZVNRrCStsBM+5clGep3NpS+7sZjq WXdStt8lX1DLpuWLKrn0Snpga7gUiDtek6wwiW+CWIwSJEmIlRYz8Zduuc4TJUVhbIE1 jx3CenVGwYuxTnSFCskctYg1RCoRJZJJaCejkczZXxgVk5zsKOoBmqqcY6lutUwRnApS tRz3qSiygZBY5X98xCvY4W8Qj6sMoZomPmU/CCrtxa87iof5Txxt6QyGib1/A0z+T6/c zqo+BZ1ARvCEAByF0alZUsK3064o1WdlE3XBF8aV1WwcssUdzlVeH3KMLaHfr9ssWCTj 27IQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765975397; x=1766580197; 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=sIdZAO8P3dgM92b27/S5f8OS07N3DrYmohCiR/2BE+U=; b=WXoo2S6jrBOvZNmbvQZwZFym1DYPeJia7SlbfqciWfxgIkDnvOyy5diaYM387/oB8E hpSpTfE8a7SUOMsSshgJ2FEQNu0TklPNkFPoC6UgmM2wVFBcq0oAgf5OvAf+p6rsHcUa K9RYNIcTcP5qletSYqLUO4MfhSx5kMz8OQDGFt2rIQ1qsMkKxUzXVsLuqcoR2yBuwZ3B rk3Inbna8t4sTquZY1I8vdBLnJ5k8vZJIbtgwhTFy5F2CBnl4FPVSwZC6A9sZCQVMWfK JsLyuf3vLKxV0ZVo1fO7ZxxDTTt67SodueI0tyKGhTsBakn9HhZ2vAmFvduaQC8Ngeh+ XTNg== X-Gm-Message-State: AOJu0Yz5MnniUSi2+CrhhaVbHWB6IB72NPaAnOhl5VFtdODssDU9cB/b XqaVhWBeSexUkg8b37mmxFXQAOpXwmlAlADMgwuhyYVdgZaR+l4awubGB8Gc1MofJHRCJuDFz/m 5fpCKkJug4Vd2BBL/mUYdkr6y1Ax4BiSniLjV X-Gm-Gg: AY/fxX4IBodalHiDP+BgN8YihmAmg2JqR7LTxKTR49UKZXcraBKWC9qsxeWL0PhFXZH /O1faw7zTMn9K+KPosyXClSg2PJd9cYKYGVSTTEr8UqlDrbBjX9FMr+u2ON5M0hCyyl50ZzYqv6 hI+POSnVE2MZKnRCx5e9SjQFetirbvR1d0Ccs8kR0GKkpCrCYP519XsNBfdLIl/8RJ4seXvSiab SBvRIEtWw/SxbdJFuBnVcnpbaMWHn3LZwxFjed2MzdM1odlGV5Pn/sNIQJdLVnDknUgW7v1W30P 2dr1geHYDzp9OPU74p1Qq0572c1r+e4kLGqpXg== X-Google-Smtp-Source: AGHT+IEQYwP9idCfHYinRKjbQqUWccSxWim3nKRPv0op56Yho+vUkLaV4CsuiHFd35/hxRWh0weppDNaacUMY+5Gzz4= X-Received: by 2002:a05:6820:188b:b0:65b:3249:dfcc with SMTP id 006d021491bc7-65b452c2b62mr7148573eaf.74.1765975397230; Wed, 17 Dec 2025 04:43:17 -0800 (PST) MIME-Version: 1.0 References: <287E4DF6-35A2-4062-AEBA-32DB1DE35C5D@leisi.net> In-Reply-To: <287E4DF6-35A2-4062-AEBA-32DB1DE35C5D@leisi.net> From: Greg Sabino Mullane Date: Wed, 17 Dec 2025 07:42:41 -0500 X-Gm-Features: AQt7F2r4Jk5XFv9NP8SG4502BByVNVGELkZ1gSBeT-xPEKCYt_J_1D4tKwZR4IE Message-ID: Subject: Re: Record last SELECT on a row? To: Matthias Leisi Cc: "pgsql-generallists.postgresql.org" Content-Type: multipart/alternative; boundary="0000000000003becbe06462530a2" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000003becbe06462530a2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Dec 17, 2025 at 2:41=E2=80=AFAM Matthias Leisi = wrote: > The table contains some ten thousand rows, five columns, and we already > record created / last updated using triggers. ... > Any other ways this could be achieved? > It depends a lot on how the table is accessed, but you could use a function (or group of functions) that returns the information from the table, and along the way, updates the requested metadata. Cheers, Greg -- Crunchy Data - https://www.crunchydata.com Enterprise Postgres Software Products & Tech Support --0000000000003becbe06462530a2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

--
Enterprise Postgres Softwa= re Products & Tech Support

--0000000000003becbe06462530a2--