mirror of
https://github.com/postgres/postgres.git
synced 2025-12-13 14:22:43 +03:00
pgindent run for 9.4
This includes removing tabs after periods in C comments, which was applied to back branches, so this change should not effect backpatching.
This commit is contained in:
@@ -62,8 +62,8 @@ PG_MODULE_MAGIC;
|
||||
|
||||
|
||||
/**********************************************************************
|
||||
* Information associated with a Perl interpreter. We have one interpreter
|
||||
* that is used for all plperlu (untrusted) functions. For plperl (trusted)
|
||||
* Information associated with a Perl interpreter. We have one interpreter
|
||||
* that is used for all plperlu (untrusted) functions. For plperl (trusted)
|
||||
* functions, there is a separate interpreter for each effective SQL userid.
|
||||
* (This is needed to ensure that an unprivileged user can't inject Perl code
|
||||
* that'll be executed with the privileges of some other SQL user.)
|
||||
@@ -99,7 +99,7 @@ typedef struct plperl_interp_desc
|
||||
*
|
||||
* The refcount field counts the struct's reference from the hash table shown
|
||||
* below, plus one reference for each function call level that is using the
|
||||
* struct. We can release the struct, and the associated Perl sub, when the
|
||||
* struct. We can release the struct, and the associated Perl sub, when the
|
||||
* refcount goes to zero.
|
||||
**********************************************************************/
|
||||
typedef struct plperl_proc_desc
|
||||
@@ -254,8 +254,8 @@ static void plperl_event_trigger_handler(PG_FUNCTION_ARGS);
|
||||
static void free_plperl_function(plperl_proc_desc *prodesc);
|
||||
|
||||
static plperl_proc_desc *compile_plperl_function(Oid fn_oid,
|
||||
bool is_trigger,
|
||||
bool is_event_trigger);
|
||||
bool is_trigger,
|
||||
bool is_event_trigger);
|
||||
|
||||
static SV *plperl_hash_from_tuple(HeapTuple tuple, TupleDesc tupdesc);
|
||||
static SV *plperl_hash_from_datum(Datum attr);
|
||||
@@ -302,8 +302,8 @@ static char *setlocale_perl(int category, char *locale);
|
||||
static char *
|
||||
hek2cstr(HE *he)
|
||||
{
|
||||
char *ret;
|
||||
SV *sv;
|
||||
char *ret;
|
||||
SV *sv;
|
||||
|
||||
/*
|
||||
* HeSVKEY_force will return a temporary mortal SV*, so we need to make
|
||||
@@ -707,6 +707,7 @@ plperl_init_interp(void)
|
||||
int nargs = 3;
|
||||
|
||||
#ifdef WIN32
|
||||
|
||||
/*
|
||||
* The perl library on startup does horrible things like call
|
||||
* setlocale(LC_ALL,""). We have protected against that on most platforms
|
||||
@@ -3055,7 +3056,7 @@ plperl_spi_execute_fetch_result(SPITupleTable *tuptable, int processed,
|
||||
|
||||
/*
|
||||
* Note: plperl_return_next is called both in Postgres and Perl contexts.
|
||||
* We report any errors in Postgres fashion (via ereport). If called in
|
||||
* We report any errors in Postgres fashion (via ereport). If called in
|
||||
* Perl context, it is SPI.xs's responsibility to catch the error and
|
||||
* convert to a Perl error. We assume (perhaps without adequate justification)
|
||||
* that we need not abort the current transaction if the Perl code traps the
|
||||
|
||||
Reference in New Issue
Block a user