mirror of
https://github.com/postgres/postgres.git
synced 2025-08-17 01:02:17 +03:00
Post-feature-freeze pgindent run.
Discussion: https://postgr.es/m/15719.1523984266@sss.pgh.pa.us
This commit is contained in:
@@ -1685,8 +1685,8 @@ slot_getsomeattrs(TupleTableSlot *slot, int attnum)
|
||||
attno = slot->tts_nvalid;
|
||||
|
||||
/*
|
||||
* If tuple doesn't have all the atts indicated by attnum, read the
|
||||
* rest as NULLs or missing values
|
||||
* If tuple doesn't have all the atts indicated by attnum, read the rest
|
||||
* as NULLs or missing values
|
||||
*/
|
||||
if (attno < attnum)
|
||||
slot_getmissingattrs(slot, attno, attnum);
|
||||
|
@@ -489,8 +489,8 @@ index_truncate_tuple(TupleDesc sourceDescriptor, IndexTuple source,
|
||||
Assert(IndexTupleSize(truncated) <= IndexTupleSize(source));
|
||||
|
||||
/*
|
||||
* Cannot leak memory here, TupleDescCopy() doesn't allocate any
|
||||
* inner structure, so, plain pfree() should clean all allocated memory
|
||||
* Cannot leak memory here, TupleDescCopy() doesn't allocate any inner
|
||||
* structure, so, plain pfree() should clean all allocated memory
|
||||
*/
|
||||
pfree(truncdesc);
|
||||
|
||||
|
@@ -1495,9 +1495,9 @@ index_reloptions(amoptions_function amoptions, Datum reloptions, bool validate)
|
||||
bytea *
|
||||
index_generic_reloptions(Datum reloptions, bool validate)
|
||||
{
|
||||
int numoptions;
|
||||
int numoptions;
|
||||
GenericIndexOpts *idxopts;
|
||||
relopt_value *options;
|
||||
relopt_value *options;
|
||||
static const relopt_parse_elt tab[] = {
|
||||
{"recheck_on_update", RELOPT_TYPE_BOOL, offsetof(GenericIndexOpts, recheck_on_update)}
|
||||
};
|
||||
@@ -1512,12 +1512,12 @@ index_generic_reloptions(Datum reloptions, bool validate)
|
||||
|
||||
idxopts = allocateReloptStruct(sizeof(GenericIndexOpts), options, numoptions);
|
||||
|
||||
fillRelOptions((void *)idxopts, sizeof(GenericIndexOpts), options, numoptions,
|
||||
fillRelOptions((void *) idxopts, sizeof(GenericIndexOpts), options, numoptions,
|
||||
validate, tab, lengthof(tab));
|
||||
|
||||
pfree(options);
|
||||
|
||||
return (bytea*) idxopts;
|
||||
return (bytea *) idxopts;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user