mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
pgindent run. Make it all clean.
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
#include "commands/trigger.h" /* -"- and triggers */
|
||||
#include "miscadmin.h" /* for GetUserName() */
|
||||
|
||||
extern Datum insert_username(PG_FUNCTION_ARGS);
|
||||
extern Datum insert_username(PG_FUNCTION_ARGS);
|
||||
|
||||
PG_FUNCTION_INFO_V1(insert_username);
|
||||
|
||||
@ -65,7 +65,7 @@ insert_username(PG_FUNCTION_ARGS)
|
||||
|
||||
/* create fields containing name */
|
||||
newval = DirectFunctionCall1(textin,
|
||||
CStringGetDatum(GetUserName(GetUserId())));
|
||||
CStringGetDatum(GetUserName(GetUserId())));
|
||||
|
||||
/* construct new tuple */
|
||||
rettuple = SPI_modifytuple(rel, rettuple, 1, &attnum, &newval, NULL);
|
||||
|
@ -15,7 +15,7 @@ OH, me, I'm Terry Mackintosh <terry@terrym.com>
|
||||
#include "executor/spi.h" /* this is what you need to work with SPI */
|
||||
#include "commands/trigger.h" /* -"- and triggers */
|
||||
|
||||
extern Datum moddatetime(PG_FUNCTION_ARGS);
|
||||
extern Datum moddatetime(PG_FUNCTION_ARGS);
|
||||
|
||||
PG_FUNCTION_INFO_V1(moddatetime);
|
||||
|
||||
|
@ -373,7 +373,7 @@ set_timetravel(PG_FUNCTION_ARGS)
|
||||
else
|
||||
TTOff = realloc(TTOff, (nTTOff + 1) * sizeof(char *));
|
||||
s = rname = DatumGetCString(DirectFunctionCall1(nameout,
|
||||
NameGetDatum(relname)));
|
||||
NameGetDatum(relname)));
|
||||
d = TTOff[nTTOff] = malloc(strlen(rname) + 1);
|
||||
while (*s)
|
||||
*d++ = tolower((unsigned char) *s++);
|
||||
|
Reference in New Issue
Block a user