Re: [PATCH] Add pg_get_table_ddl() to reconstruct CREATE TABLE statements

From: Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: [PATCH] Add pg_get_table_ddl() to reconstruct CREATE TABLE statements
Date: 2026-06-22 18:56:37
Message-ID: CAN4CZFONwnCCdPyJ0ZdJYx=eGDgueBd5o_dZRyh1DNJw+tPhDg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Thanks, I can confirm that only_foreign_keys works properly.

> Combining `only_foreign_keys=true` with `includes_foreign_keys=false` is
> rejected upfront since it would produce no output.

Shouldn't only_foreign_keys=true with include_constraints=false also error out?

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2026-06-22 19:03:33 Re: Is there value in having optimizer stats for joins/foreignkeys?
Previous Message Zsolt Parragi 2026-06-22 18:51:36 Re: More jsonpath methods: translate, split, join