broken formatting?

Started by Pavel Stehuleabout 3 years ago5 messageshackers
Jump to latest
#1Pavel Stehule
pavel.stehule@gmail.com

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);

Regards

Pavel

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Pavel Stehule (#1)
Re: broken formatting?

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

#3Pavel Stehule
pavel.stehule@gmail.com
In reply to: Tom Lane (#2)
Re: broken formatting?

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?

Show quoted text

regards, tom lane

#4Tom Lane
tgl@sss.pgh.pa.us
In reply to: Pavel Stehule (#3)
Re: broken formatting?

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

#5Pavel Stehule
pavel.stehule@gmail.com
In reply to: Tom Lane (#4)
Re: broken formatting?

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

Show quoted text

regards, tom lane