few exceptions I feel that everything that can be done in SQL, should be. It is generally faster, easier to maintain, and more easily controlled. But, then again I use postgres, and while I rarely ever need to, I have pl/perl to fall back on. Some advantages of using the database over perl.