Re: Retail DDL

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dilip Kumar <dilipbalaut@gmail.com>
Cc: Andrew Dunstan <andrew@dunslane.net>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2025-07-25T03:53:31Z
Lists: pgsql-hackers
Dilip Kumar <dilipbalaut@gmail.com> writes:
> OTOH, we can have a common function and pass object type as parameter
> i.e. select pg_get_ddl('table', 'mytable'), with this the same
> function can be extended for different object types.

And you'll work regclass/regtype/etc into that how?  AFAICS the
only way would involve fundamentally redundant typing:

	select pg_get_ddl('table', 'mytable'::regclass);

How is that better?

			regards, tom lane