Skip to content

[Keep as draft] Changes for PGlite#65

Draft
tdrz wants to merge 29 commits intoREL_17_5from
tdrz/newPGlite
Draft

[Keep as draft] Changes for PGlite#65
tdrz wants to merge 29 commits intoREL_17_5from
tdrz/newPGlite

Conversation

@tdrz
Copy link
Collaborator

@tdrz tdrz commented Mar 3, 2026

PR for inspecting changes introduced for PGlite.

Copy link
Collaborator

@samwillis samwillis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking very good. So clean compared to what we had before.

Mostly what I would like to see is some comments and docs emailing whats happening. May be a README-PGLITE-DEV.md in the root with an overview of what we have changed and why, with links to relevant place.

👏

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we extensively comment this file?

Postgres does a great job of adding a large doc comment at the top of each source file explaining what it does, then commenting each function or blocks of globals indicating what they are for and how they work. Can we do the same?

There is so much embedded knowledge in here, it would be good to surface it (will make it 10x easer to review too!)

static void disable_statement_timeout(void);


/* these must be volatile to ensure state is preserved across longjmp: */
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once longjmp is documented / commented on in pglitec.c can you add a comment here saying "see pglitec.c for details"

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Git is doing a bad job of showing the diff. I think this is mostly the unrolled main loop. Ensure there is a comment explaining what we have done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants