Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uxiQc-00HML3-E5 for pgsql-hackers@arkaria.postgresql.org; Sun, 14 Sep 2025 08:49:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1uxiQZ-007DGe-08 for pgsql-hackers@arkaria.postgresql.org; Sun, 14 Sep 2025 08:49:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1uxiQY-007DGN-8m for pgsql-hackers@lists.postgresql.org; Sun, 14 Sep 2025 08:49:43 +0000 Received: from mail.nataraj.su ([168.119.121.177]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1uxiQU-000KeG-19 for pgsql-hackers@lists.postgresql.org; Sun, 14 Sep 2025 08:49:41 +0000 Received: from thinkpad-pgpro.localnet (unknown [91.203.188.92]) by mail.nataraj.su (Postfix) with ESMTPSA id 0CBD21449EB; Sun, 14 Sep 2025 11:49:35 +0300 (MSK) From: Nikolay Shaplov To: PostgreSQL Hackers , =?ISO-8859-1?Q?=C1lvaro?= Herrera , Chris Travers , Timur Magomedov Subject: Re: [PATCH] ternary reloption type Date: Sun, 14 Sep 2025 11:49:34 +0300 Message-ID: <4047390.3Lj2Plt8kZ@thinkpad-pgpro> Organization: Postgres Professional In-Reply-To: References: <3474141.usfYGdeWWP@thinkpad-pgpro> <11330814.CDJkKcVGEf@thinkpad-pgpro> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4961315.687JKscXgg"; micalg="pgp-sha512"; protocol="application/pgp-signature" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --nextPart4961315.687JKscXgg Content-Type: multipart/mixed; boundary="nextPart4155600.3ZeAukHxDK"; protected-headers="v1" Content-Transfer-Encoding: 7Bit From: Nikolay Shaplov Subject: Re: [PATCH] ternary reloption type Date: Sun, 14 Sep 2025 11:49:34 +0300 Message-ID: <4047390.3Lj2Plt8kZ@thinkpad-pgpro> Organization: Postgres Professional MIME-Version: 1.0 This is a multi-part message in MIME format. --nextPart4155600.3ZeAukHxDK Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" =D0=92 =D0=BF=D0=B8=D1=81=D1=8C=D0=BC=D0=B5 =D0=BE=D1=82 =D0=BF=D1=8F=D1=82= =D0=BD=D0=B8=D1=86=D0=B0, 12 =D1=81=D0=B5=D0=BD=D1=82=D1=8F=D0=B1=D1=80=D1= =8F 2025 =D0=B3. 16:46:19 MSK =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0= =B0=D1=82=D0=B5=D0=BB=D1=8C Timur=20 Magomedov =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB: > Hello Nikolay! >=20 > Found a typo in reloptions.h, treaed -> treated. Oups. Fixed that in the attached version. > Can ternary enum be added in a separate header file, say, > src/include/ternary.h instead of adding it to c.h? I'm just not sure if > c.h is it the right place for relation-options-specific code. > Of course, I can be wrong. I am not sure either. But my guess is that spamming into c.h is lesser crim= e=20 then adding another useless header file. Moreover, ternary value is not relation-options-specific, it is actually=20 relation specific, if you think about it thoroughly. Relation code uses it,= and=20 there is no way to avoid that.=20 Are there any other notions about the code? I tried to make thongs more neat and more consistent here. Did I succeed? =2D-=20 Nikolay Shaplov aka Nataraj =46uzzing Engineer at Postgres Professional Matrix IM: @dhyan:nataraj.su --nextPart4155600.3ZeAukHxDK Content-Disposition: attachment; filename="v2a-0001-Add-ternary-reloption-type.patch" Content-Transfer-Encoding: 7Bit Content-Type: text/x-patch; charset="unicode-2-0-utf-8"; name="v2a-0001-Add-ternary-reloption-type.patch"