On Jul 1, 2025, at 5:37 AM, Laurenz Albe <laurenz.albe@xxxxxxxxxxx> wrote:
Just for my edification, how would one create that PostGIS function using the "standard-conforming new style"? *All* of the examples in PostgeSQL's current documentation are the "old" (string) style at https://www.postgresql.org/docs/18/xfunc-sql.html. The only example of the new style in the PostgreSQL documentation that I could find is the very trivial second example at https://www.postgresql.org/docs/18/sql-createfunction.html. The other examples on that web page are all the old style. If the new style is better, perhaps someone should update the PostgreSQL documentation to use it more than just once. More complicated examples of "new style" SQL functions are needed, I feel. My web searches for more information on "standard-conforming new style" SQL functions were not fruitful. All I kept finding were examples of the "old" kind in the first 3 pages of my search results. Any pointers to useful web pages covering this topic in some detail would be appreciated. Thanks, Ed |