Thread: broken formatting?
Hi
diff --git a/src/backend/utils/adt/numeric.c b/src/backend/utils/adt/numeric.c
index a83feea396..12c6548675 100644
--- a/src/backend/utils/adt/numeric.c
+++ b/src/backend/utils/adt/numeric.c
@@ -1233,7 +1233,7 @@ numeric_support(PG_FUNCTION_ARGS)
* scale of the attribute have to be applied on the value.
*/
Datum
-numeric (PG_FUNCTION_ARGS)
+numeric(PG_FUNCTION_ARGS)
{
Numeric num = PG_GETARG_NUMERIC(0);
int32 typmod = PG_GETARG_INT32(1);
index a83feea396..12c6548675 100644
--- a/src/backend/utils/adt/numeric.c
+++ b/src/backend/utils/adt/numeric.c
@@ -1233,7 +1233,7 @@ numeric_support(PG_FUNCTION_ARGS)
* scale of the attribute have to be applied on the value.
*/
Datum
-numeric (PG_FUNCTION_ARGS)
+numeric(PG_FUNCTION_ARGS)
{
Numeric num = PG_GETARG_NUMERIC(0);
int32 typmod = PG_GETARG_INT32(1);
Regards
Pavel
Pavel Stehule <pavel.stehule@gmail.com> writes: > -numeric (PG_FUNCTION_ARGS) > +numeric(PG_FUNCTION_ARGS) Sadly, pgindent will just put that back, because it knows that "numeric" is a typedef. regards, tom lane
so 25. 2. 2023 v 17:57 odesílatel Tom Lane <tgl@sss.pgh.pa.us> napsal:
Pavel Stehule <pavel.stehule@gmail.com> writes:
> -numeric (PG_FUNCTION_ARGS)
> +numeric(PG_FUNCTION_ARGS)
Sadly, pgindent will just put that back, because it knows that "numeric"
is a typedef.
Is it possible to rename this function?
regards, tom lane
Pavel Stehule <pavel.stehule@gmail.com> writes: > so 25. 2. 2023 v 17:57 odesílatel Tom Lane <tgl@sss.pgh.pa.us> napsal: >> Pavel Stehule <pavel.stehule@gmail.com> writes: >>> -numeric (PG_FUNCTION_ARGS) >>> +numeric(PG_FUNCTION_ARGS) >> Sadly, pgindent will just put that back, because it knows that "numeric" >> is a typedef. > Is it possible to rename this function? That would be a way out, but it never seemed worth the trouble. regards, tom lane
so 25. 2. 2023 v 18:13 odesílatel Tom Lane <tgl@sss.pgh.pa.us> napsal:
Pavel Stehule <pavel.stehule@gmail.com> writes:
> so 25. 2. 2023 v 17:57 odesílatel Tom Lane <tgl@sss.pgh.pa.us> napsal:
>> Pavel Stehule <pavel.stehule@gmail.com> writes:
>>> -numeric (PG_FUNCTION_ARGS)
>>> +numeric(PG_FUNCTION_ARGS)
>> Sadly, pgindent will just put that back, because it knows that "numeric"
>> is a typedef.
> Is it possible to rename this function?
That would be a way out, but it never seemed worth the trouble.
ook
Regards
Pavel
regards, tom lane