Skip to content

Commit 56fb787

Browse files
Support 14beta2 (#46)
SQLite FDW 2.1.0 Import 14 related features - Support TRUNCATE - Support Bulk Insert - Support keep connection control and connection cache information Refactored tests
1 parent e226ece commit 56fb787

File tree

245 files changed

+13197
-58641
lines changed

Some content is hidden

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

245 files changed

+13197
-58641
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
*.x86_64
3737
*.hex
3838

39+
# Log files
40+
log/
41+
3942
# Debug files
4043
*.dSYM/
4144
*.su

Jenkinsfile

Lines changed: 0 additions & 171 deletions
This file was deleted.

License

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SQLite Foreign Data Wrapper for PostgreSQL
22

3-
Copyright (c) 2018, TOSHIBA Corporation
3+
Copyright (c) 2017 - 2021, TOSHIBA Corporation
44
Copyright (c) 2011 - 2016, EnterpriseDB Corporation
55

66
Permission to use, copy, modify, and distribute this software and its

META.json

Lines changed: 3 additions & 3 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.0.0",
5+
"version": "2.1.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.0.0"
13+
"version": "2.1.0"
1414
}
1515
},
1616
"prereqs": {
@@ -41,4 +41,4 @@
4141
"foreign data wrapper",
4242
"sqlite_fdw"
4343
]
44-
}
44+
}

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# SQLite Foreign Data Wrapper for PostgreSQL
44
#
5-
# Portions Copyright (c) 2018, TOSHIBA CORPORATION
5+
# Portions Copyright (c) 2021, TOSHIBA CORPORATION
66
#
77
# IDENTIFICATION
88
# Makefile
@@ -13,7 +13,7 @@ MODULE_big = sqlite_fdw
1313
OBJS = connection.o option.o deparse.o sqlite_query.o sqlite_fdw.o
1414

1515
EXTENSION = sqlite_fdw
16-
DATA = sqlite_fdw--1.0.sql
16+
DATA = sqlite_fdw--1.0.sql sqlite_fdw--1.0--1.1.sql
1717

1818
REGRESS = extra/sqlite_fdw_post extra/float4 extra/float8 extra/int4 extra/int8 extra/numeric extra/join extra/limit extra/aggregates extra/prepare extra/select_having extra/select extra/insert extra/update extra/timestamp sqlite_fdw type aggregate selectfunc
1919

@@ -36,8 +36,8 @@ include $(PGXS)
3636
ifndef MAJORVERSION
3737
MAJORVERSION := $(basename $(VERSION))
3838
endif
39-
ifeq (,$(findstring $(MAJORVERSION),9.6 10 11 12 13))
40-
$(error PostgreSQL 9.6, 10, 11, 12 or 13 is required to compile this extension)
39+
ifeq (,$(findstring $(MAJORVERSION), 10 11 12 13 14))
40+
$(error PostgreSQL 10, 11, 12, 13 or 14 is required to compile this extension)
4141
endif
4242

4343
else

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SQLite Foreign Data Wrapper for PostgreSQL
22
This PostgreSQL extension is a Foreign Data Wrapper for [SQLite][1].
33

4-
The current version can work with PostgreSQL 9.6, 10, 11, 12 and 13.
4+
The current version can work with PostgreSQL 10, 11, 12, 13 and 14.
55

66
## Installation
77
### 1. Install SQLite library
@@ -74,16 +74,22 @@ SELECT * FROM t1;
7474
- Joins (left/right/inner) are pushdowned
7575
- Limit and Offset are pushdowned (*when all tables queried are fdw)
7676
- Transactions
77+
- Support TRUNCATE by deparsing into DELETE statement without WHERE clause
78+
- Allow control over whether foreign servers keep connections open after transaction completion. This is controlled by `keep_connections` and defaults to on
79+
- Support list cached connections to foreign servers by using function sqlite_fdw_get_connections()
80+
- Support discard cached connections to foreign servers by using function sqlite_fdw_disconnect(), sqlite_fdw_disconnect_all().
81+
- Support Bulk Insert by using batch_size option
7782

7883
## Limitations
7984
- `COPY` command for foreign tables is not supported
8085
- Insert into a partitioned table which has foreign partitions is not supported
86+
- TRUNCATE in sqlite_fdw always delete data of both parent and child tables (no matter user inputs `TRUNCATE table CASCADE` or `TRUNCATE table RESTRICT`) if there are foreign-keys references with "ON DELETE CASCADE" clause.
8187
## Contributing
8288
Opening issues and pull requests on GitHub are welcome.
8389

8490
## License
8591
Copyright (c) 2017 - 2021, TOSHIBA Corporation
86-
Copyright (c) 2011 - 2016, EnterpriseDB Corporation
92+
Copyright (c) 2011 - 2016, EnterpriseDB Corporation
8793

8894
Permission to use, copy, modify, and distribute this software and its documentation for any purpose, without fee, and without a written agreement is hereby granted, provided that the above copyright notice and this paragraph and the following two paragraphs appear in all copies.
8995

0 commit comments

Comments
 (0)