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 1l1Uvh-0003kU-J0 for psycopg@arkaria.postgresql.org; Mon, 18 Jan 2021 13:50:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l1Uvg-0001SN-46 for psycopg@arkaria.postgresql.org; Mon, 18 Jan 2021 13:50:48 +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 1l1Uvf-0001SG-ST for psycopg@lists.postgresql.org; Mon, 18 Jan 2021 13:50:47 +0000 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1l1Uve-0002O8-5r for psycopg@postgresql.org; Mon, 18 Jan 2021 13:50:47 +0000 Received: by mail-lj1-x22d.google.com with SMTP id u21so18314113lja.0 for ; Mon, 18 Jan 2021 05:50:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=Ve9/BvLcE+YWdO8RRx3rVnLWU5IKbG4A2DT59HMxMXY=; b=BKO4GfShGAyhiI1LjNVey5xDNOHnd4xmC8GFQfqlqzKN+kAaEVoPOdcwWiR7ISlXPA ZGMOx8Rxsh6IRKaY4hSX9NOXH7whe5K3ccp0cs+WNCoDCP6vQ8BcPjHPceggXJStKuqd GUvlBzUB3CdTc+527EqGw/e/8eawqaoQZOO49rwDDZfLW8TTwHv8+k7KlmqmzgYUtPhr yQEiSsDuLxOvDrM+ls0ZqrpMLwd089bwZhJJ7krvQyOlmACO5NSxKE0snt7sjj1zzpAq AwAZcWBbOvudO3Hmkit7tybPRBAw8RkAwCzvDJCPYafjIyWFGeaF7Wy+R2BkDCCcAvUx x3XQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=Ve9/BvLcE+YWdO8RRx3rVnLWU5IKbG4A2DT59HMxMXY=; b=ALbgbZnFi+lozLFnr8HB2YNvxNwgSApeZUO2W7CVPMxKHf7iWTz2oba7JwTLyD0QjC h1K1+h6W2/gYBiKuq7lqRw2H3kD7knJrHG04abvMn+oZAD40eSQ7sDLkDlOHTYlkQPbY xm1daBJCsdRE+lStSQCwJjSikDg3SCIYL+npgyZ67uM0uNYDxoK6RIPp/UOs78qHw8/N oNK6rubjGO9JtSTPZQfqCdBcJFxZ/gTxvlEsOW4p92s5vd+1KvAAnAJKEj4M0cc0Au0k hgaIukEgri/FnZf9aA9QBTt2FjhT/UMQTkkmB2SmH7F2J+LoiPvLVtlLaLnWv/5Cy7kZ TKcQ== X-Gm-Message-State: AOAM533bYMDdIX+XwfnfR3qt1WrsZ53YQwBkruxHe8FNT5cnBXLHK6S3 EIWoU8SZoSROr/r96E5CEs5FcHppQnjH3Dt600SBio7+ X-Google-Smtp-Source: ABdhPJxbfjsgmlxbdn0pGvx9+Gf1wp51v7itCcHlcfXA+T/jd788K13cet/VNn47CxsSZnQGi4CaexKe20yQQnSC7mE= X-Received: by 2002:a2e:a593:: with SMTP id m19mr10682486ljp.1.1610977845592; Mon, 18 Jan 2021 05:50:45 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Daniele Varrazzo Date: Mon, 18 Jan 2021 14:50:34 +0100 Message-ID: Subject: Re: Designing a better connection pool for psycopg3 To: Daniele Varrazzo , psycopg@postgresql.org Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, 18 Jan 2021 at 14:13, Karsten Hilbert wrote: > I would strongly advise against making sys.exit() the default > for pool.terminate() unless I misunderstand something. How would you terminate the program if a maintenance thread, not the main one, thinks that the program is not in working state? Thank you! -- Daniele