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 1v9NDV-00GzB8-Jn for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Oct 2025 12:36:24 +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 1v9NDU-00CZ0t-AN for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Oct 2025 12:36:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v9NDU-00CZ0k-0q for pgsql-hackers@lists.postgresql.org; Thu, 16 Oct 2025 12:36:23 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1v9NDQ-002WUH-32 for pgsql-hackers@postgresql.org; Thu, 16 Oct 2025 12:36:22 +0000 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-426f1574a14so414041f8f.3 for ; Thu, 16 Oct 2025 05:36:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1760618178; x=1761222978; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=BmI771GWFgyCUaC0uxIfsF2GMpVSa9m50geq4iNxZSs=; b=em+DcibkMLWfgkz18dV1LNvc75k3m2J6CMcehLwY9eVy8MzYCBiYMEta7I/zXU2oou 6Jld37GARq0Pbvhhs+hwrSFBHlhzUDEK1UDZz86Od4KMlOT4CC5PbGvi595RdmgLn9G5 st6fybYhiVdEHXaBkQ7KZpPs05QksrWuIT5zE47mxzK7l2U2zjcQU2v44ED9POb0/AMr Tuw+ZorBzBGv6En6xrQlnNBJ/LwmxlVlYGwOaH5iSy3LsRw1lwTpTOygQgGxsO9t4rk5 xDHR6A58gler6PC12nylkGZX3PgtEtA/x08I/+nsF2YWz8kCONhIIINjnjBWB6SkT0w5 pTsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760618178; x=1761222978; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=BmI771GWFgyCUaC0uxIfsF2GMpVSa9m50geq4iNxZSs=; b=emEayqsXX+VRxyw8oOhEtfdHH+CYXjfDrnxk7TfgfHBJ6PBHK6Ujgm9RxkxUxFm43M XhTupyOrOzNgrJM5+kFM2+QAkX93kXSaZM5NOthGHsD78heoseaewEhSwhTLTazgA6WO 2KOSlw7HpGdju6QeiXVUSBvK9inyNznB9kppztdrJxBEL448lfEzCLH5CAQ0didjC+ET xB2Ci5BiTOXfx3DOiiT6nYyPd2mhTnGqoqG1E1s+H9sU1Xa5XuW8uH4V9+vvJgtll8pE Il/etM6L7olRiy1JI0UmkRBbVQgrAqi/JMTBU1Uu87ER9gjop2t0umuhruMhLdfl3a3m afyg== X-Gm-Message-State: AOJu0YyOlG0tIWpy2Wrn0+Fu5l/ScOsbh5YiwYb92LsFEKne2ODNgl3l UtjAgiXktUcX9sHUDIYYEAwfDS7i9LRHtFIQ+Lga6XH17sMeyk6s91Knf/8O5yBKl5yrHSF0gYz eD6Cu9IP9DPh6iuO1dr4GOfVztvu/eg== X-Gm-Gg: ASbGncsFPcyltnGc4stG5THv3/GFrSWqxiZWsZxa4muQ3hrK3/BxguWJJec1V/yXvHJ DpqPYHk0m0e91rDwuqN2PlTdA22YmOCBYnaKbHKyyKrKzgg/t64iOnSDam0B/hUPdGjAQsxJJjw 21nj62mgTW3nltODvl58+c6C9wmREjQl7YiVGlGXRG0kHBPjflbbdAIyWSmFAgc98xalMjMhS7P niFITzsnnlbI6C8r+iho84Y+cEIsHJqdokX1XYHO7d+ukJTZYrYXpelz4k3 X-Google-Smtp-Source: AGHT+IFQn2IlUjz4VYiUoR8ItpSWiSYQ+b3OzwY4O+PeavGeg7PoIu1KA6nNE5sRHxqqnaiTlTLW+BTby51uF1E8a5k= X-Received: by 2002:a05:6000:2503:b0:425:86d1:bb02 with SMTP id ffacd0b85a97d-4266e8dab70mr21787603f8f.46.1760618177883; Thu, 16 Oct 2025 05:36:17 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Philip Alger Date: Thu, 16 Oct 2025 07:36:05 -0500 X-Gm-Features: AS18NWAqNuXAnrvWz9dRq12sV7mc0WOAswOuVnR1Inm18k6rGwAAjqnw09KHNqM Message-ID: Subject: Re: [PATCH] Add pg_get_policy_ddl() function to reconstruct CREATE POLICY statement To: Akshay Joshi Cc: pgsql-hackers Content-Type: multipart/alternative; boundary="00000000000013efa4064145dd6b" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000013efa4064145dd6b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Akshay, >>> As for the statement terminator, it=E2=80=99s useful to include it, whi= le >> running multiple queries together could result in a syntax error. In my >> opinion, there=E2=80=99s no harm in providing the statement terminator. >> > However, I=E2=80=99ve modified the logic to add the statement terminator = at the > end instead of appending to a new line. > >> >> Regarding putting the terminator at the end, I think my original comment got cut off by my poor editing. Yes, that's what I was referring to; no need to append it to a new line. --=20 Best, Phil Alger --00000000000013efa4064145dd6b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Akshay,


As for the statement terminator, it=E2=80=99s usefu= l to include it, while running multiple queries together could result in a = syntax error. In my opinion, there=E2=80=99s no harm in providing the state= ment terminator.
However, I=E2=80=99ve modifie= d the logic to add the statement terminator at the end instead of appending= to a new line.=C2=A0


Regarding putting the terminator at the end, I think my o= riginal comment got cut off by my poor editing. Yes, that's what I was = referring to; no need to append it to a new line.=C2=A0

--
Best, Phil Alger
--00000000000013efa4064145dd6b--