Re: [GENERAL] interesting trigger behaviour in 8.3

2008-07-31 Thread Ivan Zolotukhin
On Tue, Jul 29, 2008 at 7:52 PM, Tom Lane <[EMAIL PROTECTED]> wrote: > "Ivan Zolotukhin" <[EMAIL PROTECTED]> writes: >> In pseudo code it looks like the following. There are 2 tables, empty >> abstract_table with 3 columns (id, col1, col2) and many tables (e.g. >> inherited_table1_with_data) that i

Re: [GENERAL] interesting trigger behaviour in 8.3

2008-07-29 Thread Tom Lane
"Ivan Zolotukhin" <[EMAIL PROTECTED]> writes: > In pseudo code it looks like the following. There are 2 tables, empty > abstract_table with 3 columns (id, col1, col2) and many tables (e.g. > inherited_table1_with_data) that inherit abstract_table. > Constraint_exclusion is set up on id column and w

Re: [GENERAL] interesting trigger behaviour in 8.3

2008-07-29 Thread Csaba Nagy
On Tue, 2008-07-29 at 19:25 +0400, Ivan Zolotukhin wrote: > Any clues? Can anybody suggest how to debug this? Is it possible to > get an explain of the query within the trigger? I bet it's the difference between prepared/not prepared plans. The trigger prepares the plan without considering the act