Skip to content

Commit aa74e80

Browse files
committed
v3.1 adds support for pg18 (and drops pg13)
1 parent 80a3609 commit aa74e80

File tree

6 files changed

+24
-14
lines changed

6 files changed

+24
-14
lines changed

CHANGELOG

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
3.1:
2-
done so far:
32
- opened up for development
4-
- drop support for Postgres versions prior to 13
3+
- drop support for Postgres versions prior to 14
54
- confirm support for Python 3.12
65
- confirm support for pg17
7-
still to do:
8-
- automated testing for pg17
9-
- confirm support for Python 3.12
6+
- add prelim support for Python 3.13
7+
- add prelim support for pg18
108

119

1210

META.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "multicorn",
3-
"abstract": "Multicorn2 Python bindings for Postgres 10+ Foreign Data Wrapper",
3+
"abstract": "Multicorn2 Python bindings for Postgres 14+ Foreign Data Wrapper",
44
"description": "The Multicorn2 Foreign Data Wrapper allows you to write extensions in python.",
55
"version": "__VERSION__",
66
"maintainer": "Denis Lussier <[email protected]>",
@@ -20,7 +20,7 @@
2020
},
2121
"provides": {
2222
"multicorn": {
23-
"abstract": "Multicorn Python bindings for Postgres 13+ Foreign Data Wrapper",
23+
"abstract": "Multicorn Python bindings for Postgres 14+ Foreign Data Wrapper",
2424
"file": "sql/multicorn.sql",
2525
"docfile": "doc/multicorn.md",
2626
"version": "__VERSION__"
@@ -29,7 +29,7 @@
2929
"prereqs": {
3030
"runtime": {
3131
"requires": {
32-
"PostgreSQL": "13.0",
32+
"PostgreSQL": "14.0",
3333
"Python": "3.9.3"
3434
}
3535
}

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
Multicorn2
33
==========
44

5-
Multicorn Python3 Foreign Data Wrapper (FDW) for Postgresql. Tested on Linux w/ Python 3.9-3.13 & Postgres 13-17.
5+
Multicorn Python3 Foreign Data Wrapper (FDW) for Postgresql. Tested on Linux w/ Python 3.9-3.13 & Postgres 14-18.
66

7-
Testing is underway for supporting Python 3.13 and is expected in v3.1. Newest versions of major linux distro's (Debian 12, Ubuntu 24.04 & EL10) are all still using Python 3.12 so sticking with using 3.12 is advised in the short run.
7+
Testing is underway for supporting Python 3.13 and is expected in v3.1. v3.1 is also expected to support pg18.
8+
Newest versions of major linux distro's (Ubuntu 24.04 & EL10) are all still using Python 3.12 so sticking with using 3.12 is advised in the short run.
89

910
The Multicorn Foreign Data Wrapper allows you to fetch foreign data in Python in your PostgreSQL server.
1011

11-
Multicorn2 is distributed under the PostgreSQL license. See the LICENSE file for
12-
details.
12+
Multicorn2 is distributed under the PostgreSQL license. See the LICENSE file for details.
1313

1414
## How it works
1515

flake.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
python313
3838
];
3939
testPostgresVersions = with pkgs; [
40-
postgresql_13
4140
postgresql_14
4241
postgresql_15
4342
postgresql_16

multicorn.control

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
comment = 'Multicorn2 Python3.9+ bindings for Postgres 13++ Foreign Data Wrapper'
1+
comment = 'Multicorn2 Python3.9+ bindings for Postgres 14++ Foreign Data Wrapper'
22
default_version = '3.1'
33
module_pathname = '$libdir/multicorn'
44
relocatable = true

sql/multicorn--3.1.sql

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
-- create wrapper with validator and handler
2+
CREATE OR REPLACE FUNCTION multicorn_validator (text[], oid)
3+
RETURNS bool
4+
AS 'MODULE_PATHNAME'
5+
LANGUAGE C STRICT;
6+
7+
CREATE OR REPLACE FUNCTION multicorn_handler ()
8+
RETURNS fdw_handler
9+
AS 'MODULE_PATHNAME'
10+
LANGUAGE C STRICT;
11+
12+
CREATE FOREIGN DATA WRAPPER multicorn
13+
VALIDATOR multicorn_validator HANDLER multicorn_handler;

0 commit comments

Comments
 (0)