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 1vBXWB-000J04-Bf for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Oct 2025 12:00:38 +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 1vBXWA-00Fnde-Ac for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Oct 2025 12:00:37 +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 1vBXWA-00FndU-0R for pgsql-hackers@lists.postgresql.org; Wed, 22 Oct 2025 12:00:37 +0000 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vBXW6-003brW-25 for pgsql-hackers@postgresql.org; Wed, 22 Oct 2025 12:00:36 +0000 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-b50645ecfbbso1328221266b.1 for ; Wed, 22 Oct 2025 05:00:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1761134433; x=1761739233; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=f7EKjLQ1L4KShHyHsN7ISszE2jxdaaedQWhq4Ky+pqM=; b=cxEQxj4feLPNt85sVmYcbs8o6p49gnaF+uBkc43IUlE/mg0HSPq60AdvH1Mb96gsK4 D5PLqWLjuJxdpwvJWh4mN+tFiYvZcTRx/ddS9VPtVMC1yT4bd7tvNAfxppMiWbykzuhe xcVd8rodHb1e2XIA7kGTm2o/ObfPqm883IYqDJISlQbQ007HcehaS0HIBc/fgdSBlmrk 2GoLEzD7LZfQBQRWAi1RjJyhbum6akVRaLvVE1uZ0vL3iLKNm+vhHVf7y5T2atxQasJA adnPvqLbybCZxJT5kDeyvd+qMP8A7ce7WpL0Rw3qLfjcDlYon6BCO0DnO+a4Nz63/+Uf KEHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761134433; x=1761739233; h=content-transfer-encoding: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=f7EKjLQ1L4KShHyHsN7ISszE2jxdaaedQWhq4Ky+pqM=; b=B9qrStyTzdRqt1IrrPcqaOqcArK7sLkYMh8zeRh414H02AeiauLDAx+Q7DZp/Rr/eB T9FI/6Wsidsmay0ilQyyRESNw4t3T99MOPGaav6/ZWBNA47cHe1qjMr09vHVFGA4AFXs UR7OBOda2yvtCJLerHJ95ueD5SErLkCO8lurHj5tAi/38QNNV1LAnyHz+DA92H/8TyVa sRgepNCW4+4xaDSJGPm+2eJiSUoJkMTzl0itM47cdahKBRhNTd71kRcuV3izjpNjSEsf nCp51jtTxtyyeY6Q4vemQMimQkBpfH658nABZHp2s2Z2Lx2nGrKGV6BV/ccSHH6FbPLb d6dg== X-Gm-Message-State: AOJu0Yz/jfvPCZZqWdw0xeNWN5BrKvHO+6NAK+5y6FARg2TIx7xB7oZ8 mht/5jXLezDG/37UYXSTbyDd6m9sdzDrXtWbMP8f5TwmQz/3WRvtN5lufR4Iz0s7VF17P6MEyVH Av7h6MJaNLRuUCbStYEdLBKYtOrWLAcCKkn+IzPNEXs6bGPxxeJj8Kw== X-Gm-Gg: ASbGncvaANWpk4S5eOki5W5JVvcv46WqqSAKzYkbD31bSkBRuwEZV6ffgdn1W8FJkGy EmKCcLM6eHRacKtOMWfKlLzcEgZVy+I8uYrEDgIzJkqJ6kjyaqwGYgDh3ReU1MesXbvgkMHzePF ZjG7Pn5Ycq0oRr1yAKdSMg/1iEzJuyRQP2oDxOY//IDfScfPYatVmty96/I/f53fwTkeZp3h3+j jcoe5VfAVAPlEn9el6G3g2w4ybWK22zXnOLsox58yqpMiVjaAwXkwQx/1YoMKvV5cYFGHr3 X-Google-Smtp-Source: AGHT+IE2TZYG60NbZdSNowKPZdpwwh+VWxNaDVRxBg2v2rde/PFGq1+zx6/2COQAOPJ42Sih607gsDeAxpw+VPu7WNQ= X-Received: by 2002:a17:907:7ea6:b0:b3e:3c1c:d2f2 with SMTP id a640c23a62f3a-b6474940fc1mr2662009566b.36.1761134432643; Wed, 22 Oct 2025 05:00:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Tim Waizenegger Date: Wed, 22 Oct 2025 14:00:21 +0200 X-Gm-Features: AS18NWC9DTB7bZK0PEoH5PPb4H0r9mpqlcqctEYPbi9B847s-UbZF8AAQAmQPeA Message-ID: Subject: Re: [PATCH] pg_get_domain_ddl: DDL reconstruction function for CREATE DOMAIN statement To: Chao Li Cc: pgsql-hackers@postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Oct 22, 2025 at 12:27=E2=80=AFPM Chao Li w= rote: > > Hi Tim, > > Thanks for working on this. I haven=E2=80=99t finished reviewing the enti= re patch. But I got a quick question: > > While reviewing a similar patch of pg_get_policy_ddl(), it take the last = parameter as a pretty flag. I wonder why pg_get_domain_ddl() doesn=E2=80=99= t support an argument for pretty? > > That's a good point; we'll add pretty printing support for consistency with the other functions. I'll send a new patch in the coming days. Best regards, Florin Irion Tim Waizenegger EDB (EnterpriseDB)