Skip to content

[hackathon]: patched pgrx14 and updated anon#11978

Closed
thesuhas wants to merge 16 commits intomainfrom
thesuhas/patched-pgrx-14
Closed

[hackathon]: patched pgrx14 and updated anon#11978
thesuhas wants to merge 16 commits intomainfrom
thesuhas/patched-pgrx-14

Conversation

@thesuhas
Copy link
Contributor

@thesuhas thesuhas commented May 19, 2025

Problem

Currently, PGRX does not have hooks for GUC. This hackathon project aims to add that, and patch the anon extension to use these hooks to give users the ability to change anon GUCs without needing cloud_admin or superuser permissions.

Summary of changes

Updated compute docker file to point to patched pgrx14 and patched anon to make use of pgrx14 changes.

Relevant PR: pgcentralfoundation/pgrx#2075
Relevant Issue: https://github.com/neondatabase/cloud/issues/20456

@thesuhas thesuhas changed the title [hackathon]: patched pgrx14 and updated anon to use it [hackathon]: patched pgrx14 and updated anon May 19, 2025
@github-actions
Copy link

github-actions bot commented May 19, 2025

8525 tests run: 7943 passed, 0 failed, 582 skipped (full report)


Code coverage* (full report)

  • functions: 32.3% (9068 of 28074 functions)
  • lines: 48.6% (79952 of 164550 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
36a8503 at 2025-05-30T21:32:40.045Z :recycle:

@github-actions
Copy link

If this PR added a GUC in the Postgres fork or neon extension,
please regenerate the Postgres settings in the cloud repo:

make NEON_WORKDIR=path/to/neon/checkout \
  -C goapp/internal/shareddomain/postgres generate

If you're an external contributor, a Neon employee will assist in
making sure this step is done.

@thesuhas thesuhas force-pushed the thesuhas/patched-pgrx-14 branch 2 times, most recently from f5a4472 to 367c150 Compare May 28, 2025 19:22
@thesuhas thesuhas force-pushed the thesuhas/patched-pgrx-14 branch from 367c150 to fa7f5b6 Compare May 28, 2025 19:22
@thesuhas thesuhas marked this pull request as ready for review May 30, 2025 21:13
@thesuhas thesuhas requested a review from a team as a code owner May 30, 2025 21:13
@thesuhas thesuhas requested review from iddm, ololobus and tristan957 May 30, 2025 21:13
ARG PG_VERSION

RUN cargo install --locked --version 0.14.1 cargo-pgrx && \
RUN cargo install --locked --git https://github.com/thesuhas/pgrx.git --branch expose_guc_assign_hook cargo-pgrx && \
Copy link
Contributor

Choose a reason for hiding this comment

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

If we want to maintain it, we should fork pgrx into neondatabase and use this URL instead of personal

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have an open PR on PGRX: pgcentralfoundation/pgrx#2075

Once that has been released, we can just update it to the latest version of PGRX instead of creating a fork

@thesuhas thesuhas closed this Jul 22, 2025
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