From: Arne Roland <A.Roland@index.de>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Pg Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: Rename of triggers for partitioned tables
Date: Tue, 20 Jul 2021 09:25:35 +0000
Message-ID: <12118ea007e34a01bb26d8d36c4c0cfe@index.de> (raw)
In-Reply-To: <202107200139.5zceapxcs6z7@alvherre.pgsql>
References: <004683a28e714bf3beb9a413a2ffbcb9@index.de>
<202107200139.5zceapxcs6z7@alvherre.pgsql>
Thank you! I get a compile time error
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallthrough=3 -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -O2 -I../../../src/include -D_GNU_SOURCE -c -o trigger.o trigger.c
In file included from ../../../src/include/postgres.h:46:0,
from trigger.c:14:
trigger.c: In function ‘renametrig_partition’:
../../../src/include/c.h:118:31: error: expected ‘,’ or ‘;’ before ‘__attribute__’
#define pg_attribute_unused() __attribute__((unused))
^
../../../src/include/c.h:155:34: note: in expansion of macro ‘pg_attribute_unused’
#define PG_USED_FOR_ASSERTS_ONLY pg_attribute_unused()
^~~~~~~~~~~~~~~~~~~
trigger.c:1588:17: note: in expansion of macro ‘PG_USED_FOR_ASSERTS_ONLY’
int found = 0 PG_USED_FOR_ASSERTS_ONLY;
^~~~~~~~~~~~~~~~~~~~~~~~
trigger.c:1588:7: warning: unused variable ‘found’ [-Wunused-variable]
int found = 0 PG_USED_FOR_ASSERTS_ONLY;
^~~~~
make[3]: *** [<builtin>: trigger.o] Error 1
Any ideas on what I might be doing wrong?
Regards
Arne
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: A.Roland@index.de, alvherre@alvh.no-ip.org, pgsql-hackers@lists.postgresql.org
Subject: Re: Rename of triggers for partitioned tables
In-Reply-To: <12118ea007e34a01bb26d8d36c4c0cfe@index.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox