Skip to content

Commit 8c98f1e

Browse files
lamdn1409lamduongngocaanhh
authored
Release 2.5.0 (#106)
* RELEASE 2.5.0 - Support PostgreSQL 17.0 --------- Co-authored-by: Duong Ngoc Lam <lam1.duongngoc@toshiba.co.jp> Co-authored-by: Nguyen Thi Van Anh <anh1.nguyenthivan@toshiba.co.jp>
1 parent 0db18ef commit 8c98f1e

File tree

274 files changed

+54004
-38876
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

274 files changed

+54004
-38876
lines changed

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.sh
2+
fdw_rpm_with_pgspider/
3+
fdw_rpm_with_postgres/

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ jobs:
2424
test:
2525
needs: detect-pgversion
2626
env:
27-
SQLITE_VERSION : "3420000"
28-
SQLITE_YEAR: "2023"
27+
SQLITE_VERSION : "3460000"
28+
SQLITE_YEAR: "2024"
2929
POSTGIS_VERSION : "3.4.2"
3030
HTTP_PROXY: ""
3131
HTTPS_PROXY: ""

GitHubActions/build_postgres.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# then builds it.
77
#
88
# Usage: ./build_postgres.sh pg_version [configure_options]
9-
# pg_version is a PostgreSQL version to be installed like 16.0.
9+
# pg_version is a PostgreSQL version to be installed like 17.0.
1010
# configure_options are a list of option for postgres server.
1111
#
1212
# Requirements
@@ -36,4 +36,4 @@ fi
3636

3737
make
3838
sudo make install
39-
sudo chown -R $USER /usr/local/pgsql
39+
sudo chown -R $USER /usr/local/pgsql

GitHubActions/build_sqlite_fdw.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# This script builds sqlite_fdw in PostgreSQL source tree.
66
#
77
# Usage: ./build_sqlite_fdw.sh pg_version mode
8-
# pg_version is a PostgreSQL version like 16.0 to be built in.
8+
# pg_version is a PostgreSQL version like 17.0 to be built in.
99
# mode is flag for sqlite_fdw compiler.
1010
#
1111
# Requirements
@@ -28,4 +28,4 @@ else
2828
make
2929
fi
3030

31-
sudo make install
31+
sudo make install

GitHubActions/detect_targets.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# This script detects target PostgreSQL versions for sqlite_fdw testing from
66
# directory names in ./sql directory. Detected versions will be outputed to
7-
# the standard output as an array of string like ["15.4","16.0"].
7+
# the standard output as an array of string like ["16.3","17.0"].
88
#
99
# Usage: ./detect_targets.sh
1010
#

GitHubActions/execute_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# Otherwise, it will exit with failure.
88

99
# Usage: ./execute_test.sh pg_version mode
10-
# pg_version is a PostgreSQL version to be tested like 16.0.
10+
# pg_version is a PostgreSQL version to be tested like 17.0.
1111
# mode is flag for sqlite_fdw compiler.
1212
#
1313
# Requiremets

META.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
"name": "sqlite_fdw",
33
"abstract": "Foreign Data Wrapper for SQLite databases",
44
"description": "PostgreSQL extension which implements a Foreign Data Wrapper (FDW) for SQLite databases.",
5-
"version": "2.4.0",
5+
"version": "2.5.0",
66
"maintainer": "pgspider",
77
"license": "postgresql",
88
"provides": {
99
"sqlite_fdw": {
1010
"abstract": "Foreign Data Wrapper for SQLite databases",
1111
"file": "sqlite_fdw.c",
1212
"docfile": "README.md",
13-
"version": "2.4.0"
13+
"version": "2.5.0"
1414
}
1515
},
1616
"prereqs": {

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ include $(PGXS)
3737
ifndef MAJORVERSION
3838
MAJORVERSION := $(basename $(VERSION))
3939
endif
40-
ifeq (,$(findstring $(MAJORVERSION), 12 13 14 15 16))
41-
$(error PostgreSQL 12, 13, 14, 15 or 16 is required to compile this extension)
40+
ifeq (,$(findstring $(MAJORVERSION), 13 14 15 16 17))
41+
$(error PostgreSQL 13, 14, 15, 16 or 17 is required to compile this extension)
4242
endif
4343

4444
else

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ SQLite Foreign Data Wrapper for PostgreSQL
22
==========================================
33

44
This is a foreign data wrapper (FDW) to connect [PostgreSQL](https://www.postgresql.org/)
5-
to [SQLite](https://sqlite.org/) database file. This FDW works with PostgreSQL 12, 13, 14, 15, 16 and confirmed with SQLite 3.42.0.
5+
to [SQLite](https://sqlite.org/) database file. This FDW works with PostgreSQL 13, 14, 15, 16, 17 and confirmed with SQLite 3.46.0.
66

77
<img src="https://upload.wikimedia.org/wikipedia/commons/2/29/Postgresql_elephant.svg" align="center" height="100" alt="PostgreSQL"/> + <img src="https://upload.wikimedia.org/wikipedia/commons/3/38/SQLite370.svg" align="center" height="100" alt="SQLite"/>
88

@@ -50,7 +50,7 @@ Features
5050
- `WHERE` clauses are pushdowned
5151
- Aggregate function are pushdowned
5252
- `ORDER BY` is pushdowned
53-
- Joins (left/right/inner/cross) are pushdowned
53+
- Joins (left/right/inner/cross/semi) are pushdowned
5454
- `CASE` expressions are pushdowned.
5555
- `LIMIT` and `OFFSET` are pushdowned when all tables in the query are foreign tables belongs to the same PostgreSQL `FOREIGN SERVER` object.
5656
- Support `GROUP BY`, `HAVING` push-down.
@@ -329,7 +329,7 @@ Returns standard "version integer" as `major version * 10000 + minor version * 1
329329
```
330330
sqlite_fdw_version
331331
--------------------
332-
20400
332+
20500
333333
```
334334

335335
Identifier case handling
@@ -593,30 +593,30 @@ Test directory have structure as following:
593593

594594
```
595595
+---sql
596-
| +---12.16
596+
| +---13.15
597597
| | filename1.sql
598598
| | filename2.sql
599599
| |
600-
| +---13.12
600+
| +---14.12
601601
| | filename1.sql
602602
| | filename2.sql
603603
| |
604604
.................
605-
| \---15.4
605+
| \---17.0
606606
| filename1.sql
607607
| filename2.sql
608608
|
609609
\---expected
610-
| +---12.16
610+
| +---13.15
611611
| | filename1.out
612612
| | filename2.out
613613
| |
614-
| +---13.12
614+
| +---14.12
615615
| | filename1.out
616616
| | filename2.out
617617
| |
618618
.................
619-
| \---15.4
619+
| \---17.0
620620
filename1.out
621621
filename2.out
622622
```

connection.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ typedef struct ConnCacheEntry
4646
Oid serverid; /* foreign server OID used to get server name */
4747
List *stmtList; /* list stmt associated with conn */
4848
uint32 server_hashvalue; /* hash value of foreign server OID */
49-
uint32 mapping_hashvalue; /* hash value of user mapping OID */
5049
} ConnCacheEntry;
5150

5251
/*

0 commit comments

Comments
 (0)