Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1edX8W-0005m9-8S for pgsql-general@arkaria.postgresql.org; Mon, 22 Jan 2018 08:07:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1edX8V-0004NB-3L for pgsql-general@arkaria.postgresql.org; Mon, 22 Jan 2018 08:07:23 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1edX8U-0004N1-Od for pgsql-general@lists.postgresql.org; Mon, 22 Jan 2018 08:07:22 +0000 Received: from mail.wordtothewise.com ([184.105.179.154]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1edX8S-0000vM-0f for pgsql-general@postgresql.org; Mon, 22 Jan 2018 08:07:21 +0000 Received: from [192.168.10.102] (unknown [37.228.247.44]) by mail.wordtothewise.com (Postfix) with ESMTPSA id D82E823379 for ; Mon, 22 Jan 2018 00:08:03 -0800 (PST) From: Steve Atkins Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Notify client when a table was full Date: Mon, 22 Jan 2018 08:07:10 +0000 References: <2f4c0da8-9ae8-4262-667e-538d5f6f67ec@iol.ie> <20180121122718.GH1311@paquier.xyz> To: Postgres General In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3273) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Jan 21, 2018, at 6:44 PM, Vincenzo Romano = wrote: >=20 > 2018-01-21 19:31 GMT+01:00 Francisco Olarte : >> On Sun, Jan 21, 2018 at 1:27 PM, Michael Paquier >> wrote: >>> On Fri, Jan 19, 2018 at 03:40:01PM +0000, Raymond O'Donnell wrote: >> ... >>>> How do you define "full"? >=20 > The only possible and meaningful case, IMHO, as stated by David > earlier, is "file system full". If your filesystem is full you're pretty much off the air. It's = something that should never happen on a production system. So ... any automation around "the filesystem is full" is going to be much the same as "the = server is dead". You're unlikely to be able to do anything useful from the app at that point, let alone from a trigger function. If the answer involves handling the case where the file system is full = we're not answering a useful question, and the original poster probably needs = to clarify. > Which is communicated by Postgres with the "Class 53 =E2=80=94 = Insufficient > Resources" error codes. > Please refer to official documentation like: >=20 > https://www.postgresql.org/docs/10/static/errcodes-appendix.html >=20 > For specific programming languages more details need to be checked. >=20 Cheers, Steve=