Re: [WIP]Vertical Clustered Index (columnar store extension) - take2
Peter Smith <smithpb2250@gmail.com>
From: Peter Smith <smithpb2250@gmail.com>
To: Timur Magomedov <t.magomedov@postgrespro.ru>
Cc: Tomas Vondra <tomas@vondra.me>,
"Aya Iwata (Fujitsu)" <iwata.aya@fujitsu.com>, "pgsql-hackers@lists.postgresql.org" <pgsql-hackers@lists.postgresql.org>
Date: 2025-06-10T08:02:04Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Mark ItemPointer arguments as const throughout
- e1ac846f3d28 19 (unreleased) cited
-
Reorganize GUC structs
- a13833c35f9e 19 (unreleased) cited
-
Eliminate XLOG_HEAP2_VISIBLE from vacuum phase III
- add323da40a6 19 (unreleased) cited
-
Update various forward declarations to use typedef
- d4d1fc527bdb 19 (unreleased) cited
-
Pathify RHS unique-ification for semijoin planning
- 24225ad9aafc 19 (unreleased) cited
-
Revert "Don't lock partitions pruned by initial pruning"
- 1722d5eb05d8 18.0 cited
-
For inplace update, send nontransactional invalidations.
- 243e9b40f1b2 18.0 cited
-
Remove nearly-unused SizeOfIptrData macro.
- 8023b5827fba 10.0 cited
Attachments
- v5-0004-VCI-module-ENABLE_WOSROS_TRANS_DEFERRAL-co.patch (application/octet-stream) patch v5-0004
- v5-0003-VCI-module-VCI_ENABLE_HOT_HASH_TABLE-code.patch (application/octet-stream) patch v5-0003
- v5-0001-Add-postgres-code-fix-needed-for-VCI.patch (application/octet-stream) patch v5-0001
- v5-0005-VCI-documentation.patch (application/octet-stream) patch v5-0005
- v5-0002-Add-VCI-module.patch (application/octet-stream) patch v5-0002
Hi Timur. On Wed, Jun 4, 2025 at 11:47 PM Timur Magomedov <t.magomedov@postgrespro.ru> wrote: > > Hello Peter, > > I've tried running VCI, the idea looks great to me. Thank you and > Iwata-san for working on this feature. Looked at the source code of VCI > module, the patch is huge but here are some ideas I hope could be > useful for community. Made some patches on top of v4 that can be > squashed into future iteration of VCI module. > > 0001-Removed-unnecessary-preload-libraries-checks.patch > Please correct me if I'm wrong but there is no need for adding VCI to > "session_preload_libraries" in case it is in "shared_preload_libraries" > already. I think you are correct, but I am still checking the history of this code before making this change. > > 0002-Meson-fixes.patch > Fixed some ghost files in Meson build, added VCI to > contrib/meson.build. Done. > 0003-Removed-unused-OS-specific-CAS-functions.patch > Having own VCI-specific CAS looks scary to me, fortunately looks like > it was unused and can be removed. Done. > > 0004-Fixed-segfault-in-case-there-is-no-hottable.patch > The most exciting one, faced it while playing around with queries from > ClickBench benchmark. Segfault was caused by accessing > aggstate->hottable even in case aggstate->hottable is NULL, using > aggstate->hashtable instead fixes this. Done. > > Also there are some ideas of making the VCI module patch smaller and > simpler for review: > > First of all, we have this hottable optimization which is enabled but > surrounded by "#ifdef VCI_ENABLE_HOT_HASH_TABLE ... #endif". I think > this could be a separate patch on top of VCI module patch, say "Hot > hashtable optimization". Done. > Second, there is some OS-specific code that looks like used only in > case ENABLE_WOSROS_TRANS_DEFERRAL is defined. This feature is unclear > to me, probably it can be better reviewed if separated to another > "Deferral of WOS->ROS transforamtion" patch that would introduce new > GUC and some OS-specific code. So we can be sure other VCI code has no > OS-specific parts. > Done. ~~~ PSA v5 patches. These incorporate most of Timur's top-up patches and patch splitting ideas [1], plus other minor changes: v5-0001 - same as v4-0001 v5-0002 - Lots of comment prefixes are modified -- e.g. "/**<" to "/*" - Includes top-up patch 0002 (meson fixes) - Includes top-up patch 0003 (removes some unused OS-specific functions) - Includes top-up patch 0004 (fixed segfault) v5-0003 All the VCI_ENABLE_HOT_HASH_TABLE code is moved from the previous patch 0002. v5-0004 All the ENABLE_WOSROS_TRANS_DEFERAL code is moved from the previous patch 0002. v5-0003 - same as v4-0003 ====== [1] https://www.postgresql.org/message-id/c4e314ef0a58050c8b7847ac1852555876674a69.camel%40postgrespro.ru Kind Regards, Peter Smith. Fujitsu Australia