Re: Adding SHOW CREATE TABLE - Mailing list pgsql-hackers

From Jelte Fennema
Subject Re: Adding SHOW CREATE TABLE
Date
Msg-id CAGECzQS=_QK=RzPokZ6XeLO9yOxwiFVbGXSn+O8yRK-Gyu5saw@mail.gmail.com
Whole thread Raw
In response to Re: Adding SHOW CREATE TABLE  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: Adding SHOW CREATE TABLE
Re: Adding SHOW CREATE TABLE
List pgsql-hackers
On Mon, 22 May 2023 at 13:52, Andrew Dunstan <andrew@dunslane.net> wrote:
> A performant server side set of functions would be written in C and follow the patterns in ruleutils.c.

We have lots of DDL ruleutils in our Citus codebase:
https://github.com/citusdata/citus/blob/main/src/backend/distributed/deparser/citus_ruleutils.c

I'm pretty sure we'd be happy to upstream those if that meant, we
wouldn't have to update them for every postgres release.

We also have the master_get_table_ddl_events UDF, which does what SHOW
CREATE TABLE would do.



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgindent vs. pgperltidy command-line arguments
Next
From: vignesh C
Date:
Subject: Implement generalized sub routine find_in_log for tap test