↧
Answer by Erwin Brandstetter for Why colname as input param of function = not...
Only addressing your second question about EXECUTE and USING:The elephant in the room: the suggested alternative is utter nonsense for multiple reasons.The USING clause of EXECUTE is used to pass...
View ArticleAnswer by Evan Carroll for Why colname as input param of function = not good...
There are two questions here,What is the difference between EXECUTE .. USING and EXECUTE FORMAT()Why is wrapping or generating simple SQL statements in a procedural function a bad idea?The difference...
View ArticleWhy colname as input param of function = not good idea?
Someone told me that using text input for column names and formatting it, like I do below, is rarely a good idea. When I asked why, however, an answer wasn't given. That was on the postgresql IRC, and...
View Article