Skip to content

Conversation

@aykut-bozkurt
Copy link
Member

@aykut-bozkurt aykut-bozkurt commented Aug 15, 2025

  • Add pg18 to ci matrix (when 18 is released, package installation will work)
  • Make pg18 as default in Cargo.toml when 18 is released

@codecov
Copy link

codecov bot commented Aug 15, 2025

Codecov Report

❌ Patch coverage is 47.61905% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.84%. Comparing base (f3e21a7) to head (9d86fff).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/parquet_copy_hook/copy_to.rs 0.00% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #154      +/-   ##
==========================================
- Coverage   90.88%   90.84%   -0.05%     
==========================================
  Files          92       92              
  Lines       10437    10442       +5     
==========================================
  Hits         9486     9486              
- Misses        951      956       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

);
}

#[cfg(any(feature = "pg14", feature = "pg15", feature = "pg16", feature = "pg17"))]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Annoying there is (apparently) no #else-like support here, but I don't know Rust.

Copy link
Member Author

Choose a reason for hiding this comment

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

conditional compilation flags might need care in another PR. It is getting more annoying now that we support 5 Postgres versions.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah, probably creating a derived feature/attribute that we can define relative to others in build.rs, say, then testing that in the code location might be an easier approach to maintain.

}

#[cfg(any(feature = "pg15", feature = "pg16", feature = "pg17"))]
#[cfg(any(feature = "pg15", feature = "pg16", feature = "pg17", feature = "pg18"))]
Copy link
Collaborator

Choose a reason for hiding this comment

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

would #[cfg(not(feature="pg14"))] be legal/more succinct in this and other later cases?

Copy link
Member Author

Choose a reason for hiding this comment

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

using cfg_aliases now, made feature flags friendlier

@aykut-bozkurt aykut-bozkurt force-pushed the aykut/postgres-18 branch 2 times, most recently from 16466c2 to bb9bc58 Compare September 18, 2025 09:55
@aykut-bozkurt aykut-bozkurt force-pushed the aykut/postgres-18 branch 2 times, most recently from 7c68928 to eed6948 Compare September 18, 2025 10:06
@aykut-bozkurt aykut-bozkurt changed the title Postgres 18beta2 support Postgres 18 support Sep 18, 2025
# install Postgres
RUN sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
RUN sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' && \
sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg 18" >> /etc/apt/sources.list.d/pgdg.list'
Copy link
Member Author

Choose a reason for hiding this comment

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

18 is not released under main repo yet

# install pgaudit
RUN apt-get update && apt-get -y install postgresql-${PG_MAJOR}-pgaudit
# install pgaudit extension
RUN if [ ${PG_MAJOR} != "18" ]; then \
Copy link
Member Author

Choose a reason for hiding this comment

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

pgaudit is not released for 18 yet but has integration branch

Copy link
Collaborator

@pgguru pgguru left a comment

Choose a reason for hiding this comment

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

With the exception of the bad comment it looks good.

pipenv install --dev
- name: Install PostgreSQL
- name: Install PostgreSQL and postgis
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
- name: Install PostgreSQL and postgis
- name: Install PostgreSQL and pgaudit

Copy link
Member Author

Choose a reason for hiding this comment

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

the comment seems true. pgaudit is installed below.

@aykut-bozkurt aykut-bozkurt merged commit 0d80fcd into main Sep 19, 2025
12 of 14 checks passed
@aykut-bozkurt aykut-bozkurt deleted the aykut/postgres-18 branch September 19, 2025 16:31
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.

3 participants