From: | David Rowley <dgrowleyml(at)gmail(dot)com> |
---|---|
To: | Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com> |
Cc: | PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Use CompactAttribute more often, when possible |
Date: | 2025-10-20 08:49:50 |
Message-ID: | CAApHDvonyWtyKWT7D1HfD9oAdyWe_LBuNVeuLa4fqrJ2xz3w2Q@mail.gmail.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, 20 Oct 2025 at 21:34, Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com> wrote:
> I search for “TupleDescAttr”, and found more occurrences to replace. See the attached diff file.
Thanks for looking. There was a bunch that I didn't do and tried to
convey that in the commit message.
The diff you sent seems to contain a mix of my ones and your
additional ones. If you can sort that out so it's just yours and
subtract the following, which I've already decided not to do.
* MergeConstraintsIntoExisting -- I don't want to touch these for ALTER TABLE.
* record_recv -- Not done. First loop could be done but 2nd loop needs
atttypid, so Form_pg_attribute needs accessed regardless
* record_send -- Not done. First loop could be done but 2nd loop needs
atttypid, so Form_pg_attribute needs accessed regardless
* ATExecAddColumn -- I don't want to touch these for ALTER TABLE.
* CatalogTupleCheckConstraints -- Not done. This is just for Asserts
* ATRewriteTable -- I don't want to touch these for ALTER TABLE.
* ATAddForeignKeyConstraint -- I don't want to touch these for ALTER TABLE.
* set_attnotnull -- I don't want to touch these for ALTER TABLE.
* FreeTupleDesc -- Not done. I'd rather not use CompactAttribute here
just in case someone forgets to flush changes before freeing the
TupleDesc
* get_sql_insert -- Not done. There are two loops, only 1 can use
CompactAttribute.
Thanks
David
From | Date | Subject | |
---|---|---|---|
Next Message | Hayato Kuroda (Fujitsu) | 2025-10-20 08:57:32 | RE: How can end users know the cause of LR slot sync delays? |
Previous Message | Xuneng Zhou | 2025-10-20 08:46:53 | Re: Optimize SnapBuildPurgeOlderTxn: use in-place compaction instead of temporary array |