From: | legrand legrand <legrand_legrand(at)hotmail(dot)com> |
---|---|
To: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: Trigger to create automated range partition table |
Date: | 2018-11-21 08:09:57 |
Message-ID: | 1542787797239-0.post@n3.nabble.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
I confirm: This is not working now
this kind of trigger is even not supported in pg11
postgres=# CREATE TRIGGER check_pkey BEFORE INSERT ON tabpart
postgres-# FOR EACH ROW EXECUTE PROCEDURE public.f_check_pkey();
ERROR: "tabpart" is a partitioned table
DETAIL: Partitioned tables cannot have BEFORE / FOR EACH ROW triggers.
There are many development works regarding this
see all threads about ATTACH/DETACH PARTITION CONCURRENTLY
for example
Today the only solution is to create those partitions before the first
INSERT statement ;o(
Regards
PAscal
--
Sent from: http://www.postgresql-archive.org/PostgreSQL-admin-f2076596.html
From | Date | Subject | |
---|---|---|---|
Next Message | Shreeyansh Dba | 2018-11-21 09:04:32 | Re: Oracle to Postgres-Licensed GUI tool |
Previous Message | Keith | 2018-11-21 06:40:27 | Re: Trigger to create automated range partition table |