| From: | Jim Jones <jim(dot)jones(at)uni-muenster(dot)de> |
|---|---|
| To: | Marcos Pegoraro <marcos(at)f10(dot)com(dot)br> |
| Cc: | Matheus Alcantara <matheusssilv97(at)gmail(dot)com>, "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Add CREATE SCHEMA ... LIKE support |
| Date: | 2026-02-11 14:18:39 |
| Message-ID: | e4c5c6b0-0884-4daf-9840-1db4e25725a1@uni-muenster.de |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 10/02/2026 12:52, Marcos Pegoraro wrote:
> I think the approach will fail at some point if you keep using CREATE
> TABLE LIKE, because so many things will be incomplete or at least
> strange, that you'll have to redo many of them.
> Sequencevalues will be shared with the old table.
> Constraints/Indexes names will have to be renamed.
> Partitioned tables will have to be attached.
> Foreign Keys are not created either.
Quite right. Either we draw a clear line here, or it will be a tough nut
to crack.
Best, Jim
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2026-02-11 14:52:56 | Re: Little cleanup: Move ProcStructLock to the ProcGlobal struct |
| Previous Message | Chengpeng Yan | 2026-02-11 14:17:01 | Re: Unfortunate pushing down of expressions below sort |