pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <shammat@gmx.net>
To: pgsql-admin@lists.postgresql.org
Subject: Re: PostgreSQL equivalents to dbms_metadata.get_ddl & dbms_metadata.get_dependent_ddl
Date: Mon, 20 Mar 2023 15:36:15 +0100
Message-ID: <ac813873-575d-c35e-e2c4-b3773798c065@gmx.net> (raw)
In-Reply-To: <e26607cb-0591-e5d1-cf5b-4cefb627f91e@jakobs.com>
References: <CAGA3vBt=an4RqygEvUeeLPB_s0W92hC2DtjFmxV2eKu93NWOKA@mail.gmail.com>
	<18e53273-264a-2ccf-e1ed-070fc6d7c381@jakobs.com>
	<CAGA3vBvvCf3=BLt0ehGbevjRp8O9d-X6Hi6NWKRiDcEpmvwg8w@mail.gmail.com>
	<e26607cb-0591-e5d1-cf5b-4cefb627f91e@jakobs.com>

Holger Jakobs schrieb am 20.03.2023 um 15:30:
> It's not difficult to write table-valued functions returning the DDL
> of database objects, but it's a lot of work.

Someone already did the heavy lifting ;)

https://github.com/MichaelDBA/pg_get_tabledef





view thread (20+ messages)  latest in thread

Message-ID: <ac813873-575d-c35e-e2c4-b3773798c065@gmx.net>
Permalink:  ../ac813873-575d-c35e-e2c4-b3773798c065@gmx.net/
Also on:    postgresql.org/message-id/ac813873-575d-c35e-e2c4-b3773798c065@gmx.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: shammat@gmx.net, pgsql-admin@lists.postgresql.org
  Subject: Re: PostgreSQL equivalents to dbms_metadata.get_ddl & dbms_metadata.get_dependent_ddl
  In-Reply-To: <ac813873-575d-c35e-e2c4-b3773798c065@gmx.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox