get a relations DDL server-side

From: "Jordan Deitch" <jd(at)rsa(dot)pub>
To: pgsql-hackers(at)postgresql(dot)org
Subject: get a relations DDL server-side
Date: 2020-01-31 18:59:28
Message-ID: c2ce3040-a6b1-4279-97b4-fcd374ac1c60@www.fastmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I would like to introduce the ability to get object DDL (server-side) by introducing a new function with roughly the following prototype:

get_ddl(regclass)
RETURNS text
LANGUAGE C STRICT PARALLEL SAFE;

A previous conversation seemed to encourage the development of this feature

https://www.postgresql.org/message-id/CADkLM=fxfsrHASKk_bY_A4uomJ1Te5MfGgD_rwwQfV8wP68ewg@mail.gmail.com

I would like to start work on this patch but wanted acceptance on the function signature.

Thank you!

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2020-01-31 19:38:50 Re: [Proposal] Global temporary tables
Previous Message Robert Haas 2020-01-31 18:37:40 Re: Shared memory leak on DSM slot exhaustion