Dilip Kumar <[email protected]> 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
