Em sex., 11 de set. de 2026 às 12:58, Tom Lane <[email protected]> escreveu:

> I'm voting for "discard the feature".


It's a shame. I don't know how much work this duplication would entail and
whether it's the best way to do it or not, but from a user's point of view,
it's really a shame.
For everyone who works with multi-tenant, these are functions that would
really help to clone schemas, for example.
dump/sed/restore is today the only way to do that today
with that I could
select 'create schema new_schema;' union all
select 'set search_path to new_schema;' union all
select pg_get_table_ddl(oid,schema_qualified=>false) from pg_class where
relkind = 'r' and relnamespace::regclass::text = 'old_schema';

regards
Marcos

Reply via email to