Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m5m0U-00009X-PA for pgsql-hackers@arkaria.postgresql.org; Tue, 20 Jul 2021 09:25:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m5m0T-00035w-CI for pgsql-hackers@arkaria.postgresql.org; Tue, 20 Jul 2021 09:25:41 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m5m0T-00035o-2U for pgsql-hackers@lists.postgresql.org; Tue, 20 Jul 2021 09:25:41 +0000 Received: from mxout1.routing.net ([2a03:2900:1:a::a]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m5m0Q-0001zb-Vz for pgsql-hackers@lists.postgresql.org; Tue, 20 Jul 2021 09:25:40 +0000 Received: from mxbox1.masterlogin.de (unknown [192.168.10.88]) by mxout1.routing.net (Postfix) with ESMTP id 9BA2A40188; Tue, 20 Jul 2021 09:25:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1626773136; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=t2ouvOc+FAWNyWmysbadp5dghDiNby1yjP+azfFL4iU=; b=aoKAUTa00fxpHNZjhBk81os3LnnIaQAPlBVKdIERekicvkgGtvdcswAY0awGKxHlG+MhhK ypPUlCiyThulN1uawB7hUFwd5etJGy9yQ0AZKJX5pGpyT/uLbjFU352XfM0tXdnMQ9DePO hQ1Kk0UILB0GcqrUNuETG94Iv37v+HI= Received: from remote.index.de (p578a9a34.dip0.t-ipconnect.de [87.138.154.52]) by mxbox1.masterlogin.de (Postfix) with ESMTPSA id 3350D406D6; Tue, 20 Jul 2021 09:25:36 +0000 (UTC) Received: from invidia.index-gruppe.local (192.168.3.140) by acedia.index-gruppe.local (192.168.3.121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Tue, 20 Jul 2021 11:25:35 +0200 Received: from acedia.index-gruppe.local (192.168.3.121) by invidia.index-gruppe.local (192.168.3.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Tue, 20 Jul 2021 11:25:35 +0200 Received: from acedia.index-gruppe.local ([fe80::d96c:8551:78c8:d947]) by acedia.index-gruppe.local ([fe80::d96c:8551:78c8:d947%13]) with mapi id 15.01.2176.014; Tue, 20 Jul 2021 11:25:35 +0200 From: Arne Roland To: Alvaro Herrera CC: Pg Hackers Subject: Re: Rename of triggers for partitioned tables Thread-Topic: Rename of triggers for partitioned tables Thread-Index: AQHWxEk1+rora/wutkWbcRQhC03q0KnbGQ2sgAAECBOATmSTgIBhAeKAgBDG6bOAACCNT4AAKOcAgAAj1kP///tHgIAEsSJngAHhzjCAhX9QJP//43kAgAAjD3T///1iAABXUKhwA1bKhQAABHSL9QDdrxEAAARjdxL///exAIAAnfc6 Date: Tue, 20 Jul 2021 09:25:35 +0000 Message-ID: <12118ea007e34a01bb26d8d36c4c0cfe@index.de> References: <004683a28e714bf3beb9a413a2ffbcb9@index.de>,<202107200139.5zceapxcs6z7@alvherre.pgsql> In-Reply-To: <202107200139.5zceapxcs6z7@alvherre.pgsql> Accept-Language: en-US, de-DE Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.255.1.33] Content-Type: multipart/alternative; boundary="_000_12118ea007e34a01bb26d8d36c4c0cfeindexde_" MIME-Version: 1.0 X-Mail-ID: 160afd42-fbeb-458e-8b9e-e178b17ec047 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --_000_12118ea007e34a01bb26d8d36c4c0cfeindexde_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Thank you! I get a compile time error gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statemen= t -Werror=3Dvla -Wendif-labels -Wmissing-format-attribute -Wimplicit-fallth= rough=3D3 -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision= =3Dstandard -Wno-format-truncation -O2 -I../../../src/include -D_GNU_SOURC= E -c -o trigger.o trigger.c In file included from ../../../src/include/postgres.h:46:0, from trigger.c:14: trigger.c: In function =91renametrig_partition=92: ../../../src/include/c.h:118:31: error: expected =91,=92 or =91;=92 before = =91__attribute__=92 #define pg_attribute_unused() __attribute__((unused)) ^ ../../../src/include/c.h:155:34: note: in expansion of macro =91pg_attribut= e_unused=92 #define PG_USED_FOR_ASSERTS_ONLY pg_attribute_unused() ^~~~~~~~~~~~~~~~~~~ trigger.c:1588:17: note: in expansion of macro =91PG_USED_FOR_ASSERTS_ONLY= =92 int found =3D 0 PG_USED_FOR_ASSERTS_ONLY; ^~~~~~~~~~~~~~~~~~~~~~~~ trigger.c:1588:7: warning: unused variable =91found=92 [-Wunused-variable] int found =3D 0 PG_USED_FOR_ASSERTS_ONLY; ^~~~~ make[3]: *** [: trigger.o] Error 1 Any ideas on what I might be doing wrong? Regards Arne --_000_12118ea007e34a01bb26d8d36c4c0cfeindexde_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

Thank you! I get a compile time error


gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-st= atement -Werror=3Dvla -Wendif-labels -Wmissing-format-attribute -Wimplicit-= fallthrough=3D3 -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-pre= cision=3Dstandard -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,
            &nb= sp;    from trigger.c:14:
trigger.c: In function =91renametrig_partition=92:
../../../src/include/c.h:118:31: error: expected =91,=92 or =91;=92 before = =91__attribute__=92
 #define pg_attribute_unused() __attribute__((unused))
            &nb= sp;            =       ^
../../../src/include/c.h:155:34: note: in expansion of macro =91pg_attribut= e_unused=92
 #define PG_USED_FOR_ASSERTS_ONLY pg_attribute_unused()
            &nb= sp;            =          ^~~~~~~~~~~~~~~~~~~
trigger.c:1588:17: note: in expansion of macro =91PG_USED_FOR_ASSERTS_ONLY= =92
  int  found =3D 0 PG_USED_FOR_ASSERTS_ONLY;
            &nb= sp;    ^~~~~~~~~~~~~~~~~~~~~~~~
trigger.c:1588:7: warning: unused variable =91found=92 [-Wunused-variable]<= br>   int  found =3D 0 PG_USED_FOR_ASSERTS_ONLY;
       ^~~~~
make[3]: *** [<builtin>: trigger.o] Error 1

Any ideas on what I might be doing wrong?


Regards

Arne

--_000_12118ea007e34a01bb26d8d36c4c0cfeindexde_--