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 1wbg3U-002l4A-2f for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Jun 2026 14:55:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wbg3T-007AnZ-2T for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Jun 2026 14:55:19 +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.96) (envelope-from ) id 1wbg3T-007An1-0q for pgsql-hackers@lists.postgresql.org; Mon, 22 Jun 2026 14:55:19 +0000 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wbg3Q-00000001lxD-2lzz for pgsql-hackers@lists.postgresql.org; Mon, 22 Jun 2026 14:55:19 +0000 Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-3966c0d5ac9so46361591fa.2 for ; Mon, 22 Jun 2026 07:55:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1782140115; cv=none; d=google.com; s=arc-20240605; b=CQJ2sFeGuoRYehKQ8s/X9CVnOo0kklFgF4yqu9xauVpgWvzeFmSuP9ys817rx5SGay 5YQRJDHWxBUCAKk1Y/iv5PtzVerZme9UanDEMjTG81EIF4OpYjynLusF6Nj35w/6JUPg bR0vkuDt1FWAXbEQiEqgJraGHb/LI1Bqtueoffl6zcxdKwijGpgEkhPjCbi5lc7AFvD9 D/0EoqYlDjSCTDAVw8Sdb4OFuIn7Mh33+7Yb+TU1Qt5gCxjGraby4g0D7g8GIB4hjieG W9R9x16ZFFpA73sJnDlwSoBVPQom4cverIy7L9zBDRFVwUJLrtdCX9i0BU5uI1OzzcXK Gp6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=+MOtsPGi2P6+XW6BJg318jsepwHdUaELhgi1tQOZQOA=; fh=/IfHo8XvQte2y4NoykRyv+WZTGDGoST+KJNFM8ThInY=; b=dfFMmrA+e3fDasRRUyotNg9+7TiQX1S//DyU2UA+bKZdMNQ99rNhGTgveVbYT1m9qB geyn5/sqM3J2Ag3Y4k/2709eDpkfF9IQ/TTCotAc2E8Xi2ZUMXWdEZHKTKMay4tgf0uz 3bYfJn0NM534aBxX/1tCyNq9StZZ/xJz5Jc3EqXMxLJSPu1Tk0Aebt5pLiNCcBcR8ovU kKQibFONTA8yD9mCi81mukykSxltsMpjVTG1KRMT6zejrXXhe1e9cEubCyLtmYs7mUcZ eLumqtpmYQWtN2tjfiyHLkf/qPqky2kT4Z+1dPE3278nr1hfA4rJGffnDCJTO3HMuL// Du2A==; 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=1782140115; x=1782744915; 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=+MOtsPGi2P6+XW6BJg318jsepwHdUaELhgi1tQOZQOA=; b=AWryPuKvVLgffraWvIeWch5DNDqsfr2DIW1J1gV3yhbi7Y3J9n4BQ+xMd34IqRLqq2 pOf+oSSbdqbDfcLctVHTHgS4fgwIPSm8ARH8c/XogcotUXj+79diQRYyDrXkQtA04TM2 cxrc8L9yy3pq5Ez7F0KN9vvR6ztjtNHkQGULekZbpVGnXg8iihOnahDpmvMC9ov9G7Wh x6LkxIXQ+DrGZgGPFhaT9h+VHW43z6bxOkK3hvcEfxA2L7hQj2FqrBQfQVSpS9fMYmSB EZs0eIpZA+TXwjmuimql/tBmt2quU//4EBaqtjMKSZZ9vRZdTjdeV73AwUP5vSPjxMiH QZ9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782140115; x=1782744915; 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=+MOtsPGi2P6+XW6BJg318jsepwHdUaELhgi1tQOZQOA=; b=GbIZuKBMyFdlom1/NDCHFJxWKAoHlu4YEmlubtnuRJPdtDNV4oyvQ9LGHRrZ94CND0 sIJBsfrUcbGB2cYc98guDvzOu8Q4Te0JJsu4z6lGWQR2qqcSyn/iGTCss3t2TJD9yObG iycxtxE0tqA80I8IHM4ZE+GilJEMSpmwgIRiB1JmVVZ3jLdJq1ef0/nRiVP18uS9yHpe KNT0lL9JCyoMWCXW3iYGe8AEYMYId70S3mVBQpj9I+BH5I+gISBbDf/Rtw8auWxpki2w Dc15yJS9SI+N9oQpu0unHeEGO5iIgLTBktMcRbELYeiYh4ixWNkFKOrhZnpTLOsLolL1 t6PQ== X-Forwarded-Encrypted: i=1; AFNElJ/I2ljesTJDenFmptxAUhQ1lsfYayn7XtZljUDiy/FR2RCPHHeGqiESngFY6AVwP5UcpklRGsXQkhNzi6tN@lists.postgresql.org X-Gm-Message-State: AOJu0YzO1cXcUDp8MnMpU8Zo0CoC6Kqv3Y+EiAss3zASxdvKSnfQyQc4 wt5c50gYTLhgwZrydG0Xdhe19nGIGBYQQLlTHvUnoksU0U8mMkzfVgWpuyWCj1K9VJO/Oj7YWJQ 6vQZpJXqYg8qYSeDknZL3uOeSMAS+3gwvtIArydm0 X-Gm-Gg: AfdE7clapHOVt8SIyWb1tmvMR5y/Ipk1sPqDPFn+KyLCrZt32ykscnZARKCKPXMG5x4 wwgmvWKL00V7w2AGU8VAmFcgSnBg/loWnXzOTBDUfcul6m1Upeh4ZuaPcjwRxw7Xb0sBfm6IP1w HZXorJxq6x5tzZ+cEhYqqREzWos5S4GjLVmuPmDxZRi0s1cDDjcfx5CyRvqLC+FFXz0ssaohlls sFoa+r5tRckTSt7R/Pj0mGWAMgHW3nLAlZwy1uol0qQk6/huiR7cPAFxwP1LX56eknEo8/YXBAO 3oqfjQ== X-Received: by 2002:a05:6512:252b:b0:5ad:68ab:7e65 with SMTP id 2adb3069b0e04-5ad68ab7f85mr227949e87.11.1782140115349; Mon, 22 Jun 2026 07:55:15 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Marcos Pegoraro Date: Mon, 22 Jun 2026 11:54:38 -0300 X-Gm-Features: AVVi8CeIOmrGR2uw3PlLyK4ZRSU49wY8OQX6W5s6l5_oPC_VgqYwvhhno1IADfU Message-ID: Subject: Re: [PATCH] Add pg_get_table_ddl() to reconstruct CREATE TABLE statements To: Akshay Joshi Cc: Zsolt Parragi , pgsql-hackers@lists.postgresql.org Content-Type: multipart/alternative; boundary="0000000000008401c20654d8d41b" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000008401c20654d8d41b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Em seg., 22 de jun. de 2026 =C3=A0s 03:27, Akshay Joshi < akshay.joshi@enterprisedb.com> escreveu: > The documentation paragraph for `includes_foreign_keys` now directs users > to `only_foreign_keys` as the intended second pass. Regression coverage > adds three cases: the FK-only emission for your cons example, the zero-ro= w > result for a table without FKs, and the error path. > >> I still think this model of only having options for foreign keys is incomplete, maybe wrong. Imagine then cloning a schema from a publication server to be executed on a subscription server. So I don't want any other constraints besides the primary key, for example. The way you implemented it is not possible. Furthermore having only_foreign_keys and includes_foreign_keys seems confuse. regards Marcos --0000000000008401c20654d8d41b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Em seg., 22 de jun. de 2026 =C3=A0s 03:27, Akshay Joshi <akshay.joshi@enterprisedb.com> escreveu:

--0000000000008401c20654d8d41b--