This would be interesting from a query analytics perspective, but in terms of protection, i would personally not want to rely on something at the DB level. I would place a significant bet that this opinion is not unique to me, and it is why you do not find this built into xxSQL already. If the 'attacker' has access to execute unsafe queries, that is a problem you should address much further up the ladder rather than…
I see your comment is raising some controversy, but I tend to be in your camp on this one. I do a significant amount of development involving PostgreSQL and I don't think I would want to rely on this. I don't want to belittle the work in question, but as someone that can develop for the database, I have other, better techniques which can provide defensive in depth such as injection prevention while not relying on yet…
Exactly. That's the reason why we still see lots of SQL injection attacks and incidents, and the reason why I have created this module. :)