pgsql: Fix handling of R/W expanded datums that are passed to SQL funct

2022-08-10 Thread Tom Lane
Fix handling of R/W expanded datums that are passed to SQL functions. fmgr_sql must make expanded-datum arguments read-only, because it's possible that the function body will pass the argument to more than one callee function. If one of those functions takes the datum's R/W property as license to

pgsql: Fix handling of R/W expanded datums that are passed to SQL funct

2022-08-10 Thread Tom Lane
Fix handling of R/W expanded datums that are passed to SQL functions. fmgr_sql must make expanded-datum arguments read-only, because it's possible that the function body will pass the argument to more than one callee function. If one of those functions takes the datum's R/W property as license to

pgsql: Fix handling of R/W expanded datums that are passed to SQL funct

2022-08-10 Thread Tom Lane
Fix handling of R/W expanded datums that are passed to SQL functions. fmgr_sql must make expanded-datum arguments read-only, because it's possible that the function body will pass the argument to more than one callee function. If one of those functions takes the datum's R/W property as license to

pgsql: Fix handling of R/W expanded datums that are passed to SQL funct

2022-08-10 Thread Tom Lane
Fix handling of R/W expanded datums that are passed to SQL functions. fmgr_sql must make expanded-datum arguments read-only, because it's possible that the function body will pass the argument to more than one callee function. If one of those functions takes the datum's R/W property as license to

pgsql: Fix handling of R/W expanded datums that are passed to SQL funct

2022-08-10 Thread Tom Lane
Fix handling of R/W expanded datums that are passed to SQL functions. fmgr_sql must make expanded-datum arguments read-only, because it's possible that the function body will pass the argument to more than one callee function. If one of those functions takes the datum's R/W property as license to

pgsql: Fix handling of R/W expanded datums that are passed to SQL funct

2022-08-10 Thread Tom Lane
Fix handling of R/W expanded datums that are passed to SQL functions. fmgr_sql must make expanded-datum arguments read-only, because it's possible that the function body will pass the argument to more than one callee function. If one of those functions takes the datum's R/W property as license to

pgsql: Fix handling of R/W expanded datums that are passed to SQL funct

2022-08-10 Thread Tom Lane
Fix handling of R/W expanded datums that are passed to SQL functions. fmgr_sql must make expanded-datum arguments read-only, because it's possible that the function body will pass the argument to more than one callee function. If one of those functions takes the datum's R/W property as license to