Doing simple comparison of #postgresql procedural languages. Return 42 is ...
Words
30
Reading
1 min
Listen
Play
1y
... function returning hardcoded value 42.
Select row selects a single row from table having 10k rows.
plpgsql being faster than sql is surprising for the second case.