On Thursday, March 20, 2014 4:46:39 AM UTC-7, Oldřich Vetešník wrote:
>
> Is it possible to extend the pgt_counter_cache trigger so that it would 
> handle updates of the counted table? Say, I change 
> the counted_table_id_column to a different one or null. Is the language 
> able to handle this? I actually don't know so I thought I'd rather ask.
>

Yes, it is possible.  I guess it just wasn't considered before, as usually 
the places where you would use a counter cache wouldn't update the column. 
 The pgt_sum_cache trigger handles updates, so this should be a fairly 
straightforward change.  I'll try to add the ability today and release a 
new version.

Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to