From: | Vitalii Tymchyshyn <tivv00(at)gmail(dot)com> |
---|---|
To: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
Cc: | Stephen Frost <sfrost(at)snowman(dot)net>, Jeff Janes <jeff(dot)janes(at)gmail(dot)com>, Charles Gomes <charlesrg(at)outlook(dot)com>, Ondrej Ivanič <ondrej(dot)ivanic(at)gmail(dot)com>, "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org> |
Subject: | Re: Performance on Bulk Insert to Partitioned Table |
Date: | 2012-12-28 13:25:41 |
Message-ID: | CABWW-d3a=OFrh5fxR3ZzoKEwsxZ1UUYQqXCF9FXo_vp2j9bDDQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
It's a pity. Why does not it listed in "Compatibility" section of create
trigger documentation? I think, this makes "for each statement" triggers
not compatible with SQL99.
2012/12/28 Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
> Hello
>
> >
> > Also, for bulk insert, have you tried "for each statement" triggers
> instead
> > of "for each row"?
> > This would look like a lot of inserts and would not be fast in
> > single-row-insert case, but can give you benefit for huge inserts.
> > It should look like
> > insert into quotes_2012_09_10 select * from new where
> cast(new.received_time
> > as date) = '2012-09-10' ;
> > insert into quotes_2012_09_11 select * from new where
> cast(new.received_time
> > as date) = '2012-09-11' ;
> > ...
>
> It has only one problem - PostgreSQL has not relations NEW and OLD for
> statements triggers.
>
> Regards
>
> Pavel
>
--
Best regards,
Vitalii Tymchyshyn
From | Date | Subject | |
---|---|---|---|
Next Message | Pavel Stehule | 2012-12-28 13:41:23 | Re: Performance on Bulk Insert to Partitioned Table |
Previous Message | Vitalii Tymchyshyn | 2012-12-28 13:18:38 | Re: Performance on Bulk Insert to Partitioned Table |