On Sat, Aug 12, 2023 at 1:10 PM Rhys A.D. Stewart <rhys.stewart@xxxxxxxxx> wrote:
Am I missing out on a simpler or more elegant solution?
No, you are not (at least among SQL and pl/pgsql. SQL is strongly and statically typed. Circumventing that has a cost, but at least you do have tools at hand when you find the need.
David J.