forcing a table (parent in inheritance) tor emain empty

From: Rémi Cura <remi(dot)cura(at)gmail(dot)com>
To: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: forcing a table (parent in inheritance) tor emain empty
Date: 2016-10-11 16:27:12
Message-ID: CAJvUf_sWWmJKe-0XQ43R4HAdgbhT0NMTkg7u=r=F_+Ytk+-BiA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hey dear list,
I can't find a nice solution to enforce a necessary behaviour in my case :
I want a parent table to remain empty.

Of course I could define a trigger and return NULL in any case, but I'd
like a more elegant approach using check or constraints.

Any thought appreciated,
Cheers,
Rémi C

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Manuel Gómez 2016-10-11 16:33:46 Re: forcing a table (parent in inheritance) tor emain empty
Previous Message Tom Lane 2016-10-11 14:20:37 Re: confusion about user paring with pg_hba and pg_ident