guillaume@xxxxxxxxxxxx wrote: It has been answered now. See my "case closed" email here: …but still… I usually really like your scripts, it's nicely written, but this part seems really weird to me:bryn@xxxxxxxxxxxx wrote: Well, yes… I have often been accused of being anally fixated on details—and of verbosity. This is just the old chestnut that a "select" statement shouldn't have side effects. "pg_terminate_backend(p)" ought, by the book, to be a procedure. But I suppose that it dates from the time when PG had only user-defined functions (and no shipped procedures). And "perform" makes a function feel to me to be a bit more like a procedure than just selecting it feels. Others might well disagree… |