Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lRxN7-0002YV-CT for pgsql-general@arkaria.postgresql.org; Thu, 01 Apr 2021 13:28:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lRxN6-0001Jd-A2 for pgsql-general@arkaria.postgresql.org; Thu, 01 Apr 2021 13:28:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lRxN6-0001JT-0X for pgsql-general@lists.postgresql.org; Thu, 01 Apr 2021 13:28:28 +0000 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lRxN4-0005tA-0f for pgsql-general@lists.postgresql.org; Thu, 01 Apr 2021 13:28:27 +0000 Received: by mail-pj1-x1030.google.com with SMTP id a22-20020a17090aa516b02900c1215e9b33so3070795pjq.5 for ; Thu, 01 Apr 2021 06:28:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=a4y24pj/RjsQHss83LnrmaBhGGBOZ9lXZS0XFJuufNc=; b=q4OzHdQRsgX13U21Iv26ut85F8LVXW9KAblFrr4kYGI1GizhdZ7sCt/WnnN3dnOdKe /XYn+CxbVz9Zg3I1erSEuz8+AHD1eIPyfY8803NPvkXhrYqcJcun7/v2vFPP72G+hXdH 4scu8xUA1rmSK9CJWA1KBJ3p+H3kIAE40CRGwVJaGDwFK+tuiL60rSq3EadvU5UQML6t 5/KU0JmqdoiJSaQoZSgxHYZnIF1PmMb3PeGD8P0KTps1TEHOA9oCtPzkCIWbvN6Eud1f 7Xpt12px0C9uWB8BstL3l4Dcg63iVZvPZJ/OxJNOIoxR/KMOhcIvnSxKtvyqt+Ph+pMN BlgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:mime-version:subject:from:in-reply-to :date:cc:content-transfer-encoding:message-id:references:to; bh=a4y24pj/RjsQHss83LnrmaBhGGBOZ9lXZS0XFJuufNc=; b=Vljaw2mvaVgxtp63AvSE7rPciIOclXFPGeAZ7HfHqK4Ew1EbkiCX/p58AzGVPSOR/3 JHSTB3jIR/aqAAc8NtZrkgi9EX3ywAkS0bq9RIzsdPu+ENSKMd8Yd+8c0urwwiOdopBv Eq3IRoV7yIQQj2nE2RVPfQzHtCO1PH8zDy3yUAgUpGIjtdpQHNbnZR3BC6xEmDmWka3Y 69RECowpbep6IDweTXs5AzkxYR1mZkhpEkWcOW4X9xULLBEr8Pi5pC2uhM3fVu3zuu9T Phb0tccwVDo9wT30pne+Q4YkVedBTDJTQ8rAxPxfm/ycHYROpmU9Ja0gCfkZ99osLjGT AjzQ== X-Gm-Message-State: AOAM532QTSmiFG7Dkx6g0FbLMhkF6I6PMOUuODexQABzoSejm97OezLE lt0RUuP62XhzVMJbVi2L8EU= X-Google-Smtp-Source: ABdhPJzrQtYtPyVPex9pv6Z3YH6iSl7UCaSlxmqE4Hjz5suoop+IrKRUG4zf6ZuwNs/R/mcz7UFLMg== X-Received: by 2002:a17:90b:4b0e:: with SMTP id lx14mr8777586pjb.147.1617283703209; Thu, 01 Apr 2021 06:28:23 -0700 (PDT) Received: from glens-imac.lan (67.230.181.248.16clouds.com. [67.230.181.248]) by smtp.gmail.com with ESMTPSA id y2sm5768682pgp.2.2021.04.01.06.28.21 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Apr 2021 06:28:22 -0700 (PDT) Sender: Glen Huang Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.7\)) Subject: Re: How to implement expiration in PostgreSQL? From: Glen Huang In-Reply-To: Date: Thu, 1 Apr 2021 21:28:19 +0800 Cc: "pgsql-general@lists.postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: <4100B661-0C3F-4F1A-BE37-FF00423D3CA2@gmail.com> References: <3AE654F0-815D-461B-B7D8-A137FC1C6493@gmail.com> To: Tim Clarke X-Mailer: Apple Mail (2.3445.9.7) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > Possibly keep your count of members updated via a trigger? But how to evoke the trigger when the count of members should be updated = by a timeout, i.e., the person=E2=80=99s pay is due?=