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 1vWFX7-00FxUG-2b for pgsql-general@arkaria.postgresql.org; Thu, 18 Dec 2025 15:03:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vWFX6-002fXS-27 for pgsql-general@arkaria.postgresql.org; Thu, 18 Dec 2025 15:03:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vWFX6-002fXJ-0Y for pgsql-general@lists.postgresql.org; Thu, 18 Dec 2025 15:03:13 +0000 Received: from smtp1.vianet.ca ([209.91.128.18]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vWFX3-001Qmc-0z for pgsql-general@postgresql.org; Thu, 18 Dec 2025 15:03:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vianet.ca; h=subject:to:references:from:message-id:date:mime-version:in-reply-to:content-type:content-transfer-encoding; s=role; t=1766070186; bh=TOTRexgcV/3/MDPzI2zgb4hIuMUt4Zhp3juqRgy8sZo=; b=Q+UEmpQ/kzmz2SNUaBwoFXZLcMqn5UIxWypkhDi12kNrvqk0KOvNunrFUwNUll9ONxtvbDiPvwPZEv5S1jp5jHBrtxZC+kEt8EQ4m5W7C+hy/U+BLec4Efiet9s+yLuzSfzNQbOkgAW5W9fCuDzgobSUQadX7/5GvXEpXz9LK5tlUQx05Ga3Empe3wcUfxlsyceKP0hxl6qbXi7D5LOAly19dvHr3CDXagGtGkBsybm0Z+UoBQnAXoPbI1CW47wsszibYzisVlkrqSrpphctNVYbwTgO9/yBFafbMTc7dHYUMPddRAl4oqefrw2Rty/HhZMXKqh1KXD4fvLZIr574Q== Received: from [172.18.32.7] (static-209-91-130-140.vianet.ca [209.91.130.140]) (Authenticated sender: kdeugau@vianet.ca) by smtp1.vianet.ca (Postfix) with ESMTPSA id 8FDB740AC6 for ; Thu, 18 Dec 2025 10:03:06 -0500 (EST) Subject: Re: Record last SELECT on a row? To: pgsql-general References: <287E4DF6-35A2-4062-AEBA-32DB1DE35C5D@leisi.net> <91687275-3826-49fc-b705-70ab2b6e0bcf@joeconway.com> <2654835.1765996654@sss.pgh.pa.us> <4edde38e-8d0d-4b66-993d-e38dca3bf2cb@joeconway.com> From: Kris Deugau Organization: Vianet Internet Solutions Message-ID: Date: Thu, 18 Dec 2025 10:03:06 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 SeaMonkey/2.53.22 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Matthias Leisi wrote: > >>> If the application's behavior is simple and well-defined, this might >>> be good enough, of course. >> >> >> FWIW when I read the original email in the thread I got the impression >> that the application behavior was pretty simple WRT this table. But of >> course I could easily be wrong... > > You are not wrong. The use case is in fact the `userpref` table used by > Spamassassin. Left unmaintained, and given a large-enough user base, > this has the tendency to grow considerably over time, so we want to > gradually remove entries not actually used any more. (And we don’t want > to patch Spamassassin core code to do this by itself…) For this particular use case, would it be easier to periodically compare the list of usernames with userpref data against active accounts on the mail system? -kgd