From: Steve Atkins <steve@blighty.com>
To: Postgres General <pgsql-general@postgresql.org>
Subject: Re: Notify client when a table was full
Date: Mon, 22 Jan 2018 08:07:10 +0000
Message-ID: <F81CEADA-15AF-4B70-BF8C-73F3365FCFBE@blighty.com> (raw)
In-Reply-To: <CAHjZ2x6ydVSBDxck5KzujX3qN5Qw_WthG9B5NY9k1ibQy7wzUw@mail.gmail.com>
References: <CAMsqVxsC0KNNra5t4Sd_A119U=MAXQqmZ7BmQpk0LimK=-qC7A@mail.gmail.com>
<2f4c0da8-9ae8-4262-667e-538d5f6f67ec@iol.ie>
<20180121122718.GH1311@paquier.xyz>
<CA+bJJbwjY0cB09sNs8uh31Z1dFgtfsaej4bb1W1nHkXsoi8mOQ@mail.gmail.com>
<CAHjZ2x6ydVSBDxck5KzujX3qN5Qw_WthG9B5NY9k1ibQy7wzUw@mail.gmail.com>
> On Jan 21, 2018, at 6:44 PM, Vincenzo Romano <vincenzo.romano@notorand.it> wrote:
>
> 2018-01-21 19:31 GMT+01:00 Francisco Olarte <folarte@peoplecall.com>:
>> On Sun, Jan 21, 2018 at 1:27 PM, Michael Paquier
>> <michael.paquier@gmail.com> wrote:
>>> On Fri, Jan 19, 2018 at 03:40:01PM +0000, Raymond O'Donnell wrote:
>> ...
>>>> How do you define "full"?
>
> 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 — Insufficient
> Resources" error codes.
> Please refer to official documentation like:
>
> https://www.postgresql.org/docs/10/static/errcodes-appendix.html
>
> For specific programming languages more details need to be checked.
>
Cheers,
Steve
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: steve@blighty.com
Subject: Re: Notify client when a table was full
In-Reply-To: <F81CEADA-15AF-4B70-BF8C-73F3365FCFBE@blighty.com>
References: <CAMsqVxsC0KNNra5t4Sd_A119U=MAXQqmZ7BmQpk0LimK=-qC7A@mail.gmail.com> <2f4c0da8-9ae8-4262-667e-538d5f6f67ec@iol.ie> <20180121122718.GH1311@paquier.xyz> <CA+bJJbwjY0cB09sNs8uh31Z1dFgtfsaej4bb1W1nHkXsoi8mOQ@mail.gmail.com> <CAHjZ2x6ydVSBDxck5KzujX3qN5Qw_WthG9B5NY9k1ibQy7wzUw@mail.gmail.com> <F81CEADA-15AF-4B70-BF8C-73F3365FCFBE@blighty.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox