Re: Retail DDL

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dilip Kumar <dilipbalaut(at)gmail(dot)com>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Retail DDL
Date: 2025-07-25 03:53:31
Message-ID: 1791509.1753415611@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Dilip Kumar <dilipbalaut(at)gmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Japin Li 2025-07-25 03:57:52 Re: [WIP]Vertical Clustered Index (columnar store extension) - take2
Previous Message Dilip Kumar 2025-07-25 03:48:15 Re: Retail DDL