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.96) (envelope-from ) id 1wc1jD-00322v-0k for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Jun 2026 14:03:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wc1jB-00CF8s-39 for pgsql-hackers@arkaria.postgresql.org; Tue, 23 Jun 2026 14:03:49 +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.96) (envelope-from ) id 1wc1jB-00CF8k-1G for pgsql-hackers@lists.postgresql.org; Tue, 23 Jun 2026 14:03:49 +0000 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wc1j9-00000001knA-2DGJ for pgsql-hackers@lists.postgresql.org; Tue, 23 Jun 2026 14:03:48 +0000 Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-5ad4f1cf3cdso989505e87.1 for ; Tue, 23 Jun 2026 07:03:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1782223425; cv=none; d=google.com; s=arc-20260327; b=cwDCJw0/cWuAiWoNwZr9j8Ztlr52ygRypay0l4Gfb5V2UC7Jr7NSHhxA37kaxVbl8i pf+2xMWBkGHe/geBT+bhxO4rGRubgF1w6vSiTmRWaAmglPrVLZvV9blMFXnVusoeah/3 E0AKIzDz95y7k/7/yxzK50AL5bVWn8S8H+UZuRsIt7pRwRagvo2t3786ElTdpXkvDXIl Q8TIWQURo/mab4TXAdQqRbuqJ42NkrshujEA5xEu0XyfQCS9X+oZ1NYLks9ysnz+NCuE jBupvSro4kYvYzn6UGH2BAFpvUNF9s39XHWAtCWQqcZts//QmwdJb3ohmQmorx3/tM5f Y4IA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=ewebR2UqPbq35bipLzaBMvWSmjFWZWrKs94sbUYXgpw=; fh=sRcu0K9Ib62kyrTcm0XEs5jdPvy10F0PZI6HgcSbIBg=; b=OqLn+luP4zFvgFpTvOquImsOJqdvYOLsBznqqGfQzul20ENFFyC4ZB6wp9AB6f3jPa XABDEzlJ80DnP0td8L2Cn8eqkPH6KYNXX79lx6G/IcNuDfEMejBsIhVllr3R/Z0mSoto Wx3oCgFAgkHbHRXl4G2TwUwJXKmtpyXc7501Z+zcpb0H5wt8clObA6igevmVLeXYLrkQ 1FbT0QZn6D/G/4mnv/Zbn58fColtK//nY5wjbbHitHhcEwT/N6nMMj31lZMQ08QulTGo QLmb6zv6OY3z5yWIVfHivyxK5SuFeS1uMibTDmUvc3NZAqoPdJbog8GM6ao3E62wEKOb wdjQ==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=f10-com-br.20251104.gappssmtp.com; s=20251104; t=1782223425; x=1782828225; darn=lists.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=ewebR2UqPbq35bipLzaBMvWSmjFWZWrKs94sbUYXgpw=; b=lenvNkfzTIND0aaqLe3gGWhAhb40n8q2+vnxnhq3s3mTgCmokiR6Q2gSVNFFg9Hx5v 4wwAAGdiAIlEqoM8MvI7wJWQBEKtMz1GH5kVBLomysPphfAXqThtVowZYSh/FHNn9dYG wAFpSd34RNJL0Ej8EVIiCfoSi7D50HG8Y8LlGZE7Sf8h5caCDZhIBcgj0ZXbMY9086v6 i5KtXfySdU4E1L8mHr2V+oquOuOhq3dzLelIMG7kz8mDVugE4Q4lYWhUgLaJUk3f2g6o TbfV1YYmV/VC+OOG5a96Cu8ctsg03QQ6ug5Dqyp+4OhgwWqXNJY1UzcIoxxfCWShydvS 4D5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782223425; x=1782828225; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ewebR2UqPbq35bipLzaBMvWSmjFWZWrKs94sbUYXgpw=; b=QNvEFxmaIZNKXM7b4TwX40YzhNYXRXAhJRY9f9C3ycMYHFcjLCSTHlY7Me7N2l7yFg 8qnNW601bTWRLgQ4rNnyboEZ5te83tL2VEaoXQjNNbtsnz0Mbc9fB9WUvboVN41QTm2z PMmnUbxd0ARnQ4xX6avNc0+RNteaVbkyHSfRJt6y9WQceiFq47O64cVV3DLoWCSdjX2V QsPuT1Skpx5vK3rqdizJeX3XaVOSPxNWKjXF3SiCkvgaQu/wnbzmaYSvzhC94iu2ThX3 j0iCsVN7KEZqaaGDtPt18OnU7bX93qPPzVUDN3H7awbA0tYUbh/Ivz1kyEGfBrEZ9jsw PepQ== X-Forwarded-Encrypted: i=1; AFNElJ8TJua4C8MKIZX2cYcFhHrzkWH4fOgKJsJZJ0BgxtH6+CYf79HpFjQJzmJVA7/60dGWvV88I07k8/K3tHmj@lists.postgresql.org X-Gm-Message-State: AOJu0YwIXN1Q+mGrI4k0fgYl2XR+IZ3RgFujrS7w4Uo8NPdy5aMEx7CY rfHrPWqoBwQYxnY+N/ia73ccUPBGbWnJbAkjK4vrJnNJL7Y2inCKC1OIS26Ke7JzZFtUEIeu04K LJCG8tHJSay2/OL5DfxZyEll7wtD52ruH5kotMbZn X-Gm-Gg: AfdE7clyEBuM9xgB2uiuuXoAeBHrzSGK6z1PHxujOfv3qZn2ZHnMXoIbKwRbZQzbK+u 9tupZz6cTn98szMc5mdcT4Xq2GPtlUrNJcInYc4qYqyL7OdwRv44w3BfCYXYMrac7I9b4wam82k DiryZty2ZqjgVpJQlwqlA5xjZ5RacusMxSVtUEvb4ZHKkc7lk8b+ntdz/5tvQSSHACK+cNmEmeP RcAyp3X4XUMHK1OhlCM3OmGiA4uFNUShc+DI5e53LY3FIhJLnVEeTZf1Ox7Rhpd/B0yzr/Tb8Su oF6UYw== X-Received: by 2002:a05:6512:2395:b0:5ad:4c0c:da32 with SMTP id 2adb3069b0e04-5ad6958a45amr1075188e87.2.1782223424679; Tue, 23 Jun 2026 07:03:44 -0700 (PDT) MIME-Version: 1.0 References: <983C7B03-D9C3-4F15-8913-7616EC5E6414@gmail.com> <20260623.162104.775158751399277188.horikyota.ntt@gmail.com> In-Reply-To: From: Marcos Pegoraro Date: Tue, 23 Jun 2026 11:03:08 -0300 X-Gm-Features: AVVi8CfX_Gfd-j0TEPt-pPUnfK8uyJ9VYth25Hg-16IBKXkNE1jd2lHR3mdwCMU Message-ID: Subject: Re: [PATCH] Add pg_get_table_ddl() to reconstruct CREATE TABLE statements To: Akshay Joshi Cc: Kyotaro Horiguchi , li.evan.chao@gmail.com, zsolt.parragi@percona.com, pgsql-hackers@lists.postgresql.org Content-Type: multipart/alternative; boundary="0000000000002381f90654ec3a7c" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000002381f90654ec3a7c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Em ter., 23 de jun. de 2026 =C3=A0s 10:34, Akshay Joshi < akshay.joshi@enterprisedb.com> escreveu: > A quick note on a design change I made in the *pg_get_table_ddl* option > surface > Much better now. All options can be present or omitted, so why couldn't the owner also be part of the include/exclude options too ? Just one addition, some options are plural and others are not. We have indexes, policies, triggers, but we also have check, unique, exclusion. You don't know how many indices or checks you have, so wouldn't it be better to have them in singular form ? regards Marcos --0000000000002381f90654ec3a7c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable