src/backend/utils/init/miscinit.c
/*
 * These are obsolete versions of Get/SetUserIdAndSecContext that are
 * only provided for bug-compatibility with some rather dubious code in
 * pljava.	We allow the userid to be set, but only when not inside a
 * security restriction context.
 */
These are obsolete versions of Get/SetUserIdAndSecContext that are
only provided for bug-compatibility with some rather dubious code in
pljava.      We allow the userid to be set, but only when not inside a
security restriction context.
These are obsolete versions of Get / SetUserIdAndSecContext that are only provided for bug - compatibility with some rather dubious code in pljava . We allow the userid to be set but only when not inside a security restriction context .
void
GetUserIdAndContext(Oid *userid, bool *sec_def_context)
{
	*userid = CurrentUserId;
	*sec_def_context = InLocalUserIdChange();
}
void GetUserIdAndContext ( Oid * userid , bool * sec_def_context ) { * userid = CurrentUserId ; * sec_def_context = InLocalUserIdChange ( ) ; }
These are obsolete versions of Get/SetUserIdAndSecContext that are
 only provided for bug-compatibility with some rather dubious code in
 pljava.
These are obsolete versions of Get / SetUserIdAndSecContext that are only provided for bug - compatibility with some rather dubious code in pljava .