Skip to content

Commit af11606

Browse files
authored
fix: support pg13 (#13)
Signed-off-by: Mingzhuo Yin <yinmingzhuo@gmail.com>
1 parent fc2c002 commit af11606

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
lint:
6060
strategy:
6161
matrix:
62-
version: ["14", "15", "16", "17"]
62+
version: ["13", "14", "15", "16", "17"]
6363
arch: ["x86_64", "aarch64"]
6464
runs-on: ${{ matrix.arch == 'x86_64' && 'ubuntu-24.04' || 'ubuntu-24.04-arm' }}
6565

src/lib.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,14 @@ pub mod utils;
1111
#[cfg(not(all(target_endian = "little", target_pointer_width = "64")))]
1212
compile_error!("Target is not supported.");
1313

14-
#[cfg(not(any(feature = "pg14", feature = "pg15", feature = "pg16", feature = "pg17")))]
15-
compiler_error!("PostgreSQL version must be selected.");
14+
#[cfg(not(any(
15+
feature = "pg13",
16+
feature = "pg14",
17+
feature = "pg15",
18+
feature = "pg16",
19+
feature = "pg17"
20+
)))]
21+
compile_error!("PostgreSQL version must be selected.");
1622

1723
#[pgrx::pg_guard]
1824
extern "C-unwind" fn _PG_init() {

0 commit comments

Comments
 (0)