Skip to content

Commit

Permalink
Release 2.5.0 (#106)
Browse files Browse the repository at this point in the history
* RELEASE 2.5.0
- Support PostgreSQL 17.0
---------

Co-authored-by: Duong Ngoc Lam <[email protected]>
Co-authored-by: Nguyen Thi Van Anh <[email protected]>
  • Loading branch information
3 people authored Dec 10, 2024
1 parent 0db18ef commit 8c98f1e
Show file tree
Hide file tree
Showing 274 changed files with 54,004 additions and 38,876 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.sh
fdw_rpm_with_pgspider/
fdw_rpm_with_postgres/
4 changes: 2 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
test:
needs: detect-pgversion
env:
SQLITE_VERSION : "3420000"
SQLITE_YEAR: "2023"
SQLITE_VERSION : "3460000"
SQLITE_YEAR: "2024"
POSTGIS_VERSION : "3.4.2"
HTTP_PROXY: ""
HTTPS_PROXY: ""
Expand Down
4 changes: 2 additions & 2 deletions GitHubActions/build_postgres.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# then builds it.
#
# Usage: ./build_postgres.sh pg_version [configure_options]
# pg_version is a PostgreSQL version to be installed like 16.0.
# pg_version is a PostgreSQL version to be installed like 17.0.
# configure_options are a list of option for postgres server.
#
# Requirements
Expand Down Expand Up @@ -36,4 +36,4 @@ fi

make
sudo make install
sudo chown -R $USER /usr/local/pgsql
sudo chown -R $USER /usr/local/pgsql
4 changes: 2 additions & 2 deletions GitHubActions/build_sqlite_fdw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# This script builds sqlite_fdw in PostgreSQL source tree.
#
# Usage: ./build_sqlite_fdw.sh pg_version mode
# pg_version is a PostgreSQL version like 16.0 to be built in.
# pg_version is a PostgreSQL version like 17.0 to be built in.
# mode is flag for sqlite_fdw compiler.
#
# Requirements
Expand All @@ -28,4 +28,4 @@ else
make
fi

sudo make install
sudo make install
2 changes: 1 addition & 1 deletion GitHubActions/detect_targets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
# This script detects target PostgreSQL versions for sqlite_fdw testing from
# directory names in ./sql directory. Detected versions will be outputed to
# the standard output as an array of string like ["15.4","16.0"].
# the standard output as an array of string like ["16.3","17.0"].
#
# Usage: ./detect_targets.sh
#
Expand Down
2 changes: 1 addition & 1 deletion GitHubActions/execute_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Otherwise, it will exit with failure.

# Usage: ./execute_test.sh pg_version mode
# pg_version is a PostgreSQL version to be tested like 16.0.
# pg_version is a PostgreSQL version to be tested like 17.0.
# mode is flag for sqlite_fdw compiler.
#
# Requiremets
Expand Down
4 changes: 2 additions & 2 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"name": "sqlite_fdw",
"abstract": "Foreign Data Wrapper for SQLite databases",
"description": "PostgreSQL extension which implements a Foreign Data Wrapper (FDW) for SQLite databases.",
"version": "2.4.0",
"version": "2.5.0",
"maintainer": "pgspider",
"license": "postgresql",
"provides": {
"sqlite_fdw": {
"abstract": "Foreign Data Wrapper for SQLite databases",
"file": "sqlite_fdw.c",
"docfile": "README.md",
"version": "2.4.0"
"version": "2.5.0"
}
},
"prereqs": {
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ include $(PGXS)
ifndef MAJORVERSION
MAJORVERSION := $(basename $(VERSION))
endif
ifeq (,$(findstring $(MAJORVERSION), 12 13 14 15 16))
$(error PostgreSQL 12, 13, 14, 15 or 16 is required to compile this extension)
ifeq (,$(findstring $(MAJORVERSION), 13 14 15 16 17))
$(error PostgreSQL 13, 14, 15, 16 or 17 is required to compile this extension)
endif

else
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ SQLite Foreign Data Wrapper for PostgreSQL
==========================================

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

<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"/>

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

Identifier case handling
Expand Down Expand Up @@ -593,30 +593,30 @@ Test directory have structure as following:

```
+---sql
| +---12.16
| +---13.15
| | filename1.sql
| | filename2.sql
| |
| +---13.12
| +---14.12
| | filename1.sql
| | filename2.sql
| |
.................
| \---15.4
| \---17.0
| filename1.sql
| filename2.sql
|
\---expected
| +---12.16
| +---13.15
| | filename1.out
| | filename2.out
| |
| +---13.12
| +---14.12
| | filename1.out
| | filename2.out
| |
.................
| \---15.4
| \---17.0
filename1.out
filename2.out
```
Expand Down
1 change: 0 additions & 1 deletion connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ typedef struct ConnCacheEntry
Oid serverid; /* foreign server OID used to get server name */
List *stmtList; /* list stmt associated with conn */
uint32 server_hashvalue; /* hash value of foreign server OID */
uint32 mapping_hashvalue; /* hash value of user mapping OID */
} ConnCacheEntry;

/*
Expand Down
Loading

0 comments on commit 8c98f1e

Please sign in to comment.