pgsql-fix-security-definer.patch

application/octect-stream

Filename: pgsql-fix-security-definer.patch
Type: application/octect-stream
Part: 0
Message: [BUG] SECURITY DEFINER on call handler makes daemon crash

Patch

Same data as JSON: GET /api/v1/attachments/:id/patch the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes. API reference →
Format: context
File+
src/backend/utils/fmgr/fmgr.c 2 0
*** a/src/backend/utils/fmgr/fmgr.c
--- b/src/backend/utils/fmgr/fmgr.c
***************
*** 399,405 **** fmgr_info_other_lang(Oid functionId, FmgrInfo *finfo, HeapTuple procedureTuple)
  		elog(ERROR, "cache lookup failed for language %u", language);
  	languageStruct = (Form_pg_language) GETSTRUCT(languageTuple);
  
! 	fmgr_info(languageStruct->lanplcallfoid, &plfinfo);
  	finfo->fn_addr = plfinfo.fn_addr;
  
  	/*
--- 399,406 ----
  		elog(ERROR, "cache lookup failed for language %u", language);
  	languageStruct = (Form_pg_language) GETSTRUCT(languageTuple);
  
! 	fmgr_info_cxt_security(languageStruct->lanplcallfoid, &plfinfo,
! 						   CurrentMemoryContext, true);
  	finfo->fn_addr = plfinfo.fn_addr;
  
  	/*