| From: | Nathan Bossart <nathandbossart(at)gmail(dot)com> |
|---|---|
| To: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | split tablecmds.c |
| Date: | 2025-12-01 17:25:13 |
| Message-ID: | aS3PeXHLe7ir_gPc@nathan |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
This file has over 22,000 lines and is too large to be included in GitHub's
code search results [0]. It appears to have been given its current form in
2002 by commit 71dc300. Previously, it was named command.c, which dates
back to the 80s. Is it time to split it into a few different files,
similar to what was done to copy.c in 2020 by commit c532d15?
After briefly skimming through it, some areas that seem like they could
potentially be moved out are partitions, constraints, permission checks,
inheritance, foreign keys, column expressions, table rewriting, attribute
merging, TRUNCATE, and CREATE TABLE. This is far from a concrete proposal,
but I first wanted to gauge interest in $SUBJECT.
[0] https://docs.github.com/en/search-github/github-code-search/about-github-code-search#limitations
--
nathan
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jacob Champion | 2025-12-01 17:50:43 | Re: Remove useless casting to the same type |
| Previous Message | tushar | 2025-12-01 17:17:17 | Re: Non-text mode for pg_dumpall |