Skip to content

Commit

Permalink
1.2.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
ibarwick committed Oct 17, 2020
1 parent 254949f commit 8b961d4
Show file tree
Hide file tree
Showing 11 changed files with 55 additions and 14 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Revision history for firebird_fdw

1.2.0 2020-10-16
1.2.0 2020-10-17
- Add support for PostgreSQL 13
- Add support for generated columns (PostgreSQL 12 and later)
- Add support for COPY and partition tuple routing (PostgreSQL 11 and later)
Expand Down
3 changes: 3 additions & 0 deletions INSTALL-centos-redhat.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ RPM packages for CentOS/Redhat etc. are available via the Fedora "copr"
build system; for details see here:
<https://copr.fedorainfracloud.org/coprs/ibarwick/firebird_fdw/>

Note that packages are generally only built for PostgreSQL versions
currently under community support.

Source installation
-------------------

Expand Down
6 changes: 3 additions & 3 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"release_status": "stable",
"maintainer": "Ian Barwick <[email protected]>",
"license": {
"PostgreSQL": "http://www.postgresql.org/about/licence"
"PostgreSQL": "https://www.postgresql.org/about/licence"
},
"prereqs": {
"runtime": {
"requires": {
"PostgreSQL": "9.2.0"
"PostgreSQL": "9.3.0"
}
}
},
Expand All @@ -23,7 +23,7 @@
}
},
"resources": {
"homepage": "http://sql-info.de/postgresql/firebird-fdw/index.html",
"homepage": "https://sql-info.de/postgresql/firebird-fdw/index.html",
"repository": {
"url": "git://github.com/ibarwick/firebird_fdw.git",
"web": "https://github.com/ibarwick/firebird_fdw",
Expand Down
2 changes: 2 additions & 0 deletions packaging/redhat/postgresql10-firebird_fdw.spec
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ rm -rf $RPM_BUILD_ROOT
%{pgsql_path}/share/extension/firebird_fdw.control

%changelog
* Sat Oct 17 2020 Ian Barwick ([email protected])
- 1.2.0 release
* Fri May 31 2019 Ian Barwick ([email protected])
- 1.1.0 release
* Fri Nov 9 2018 Ian Barwick ([email protected])
Expand Down
2 changes: 2 additions & 0 deletions packaging/redhat/postgresql11-firebird_fdw.spec
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ rm -rf $RPM_BUILD_ROOT
%endif

%changelog
* Sat Oct 17 2020 Ian Barwick ([email protected])
- 1.2.0 release
* Fri May 31 2019 Ian Barwick ([email protected])
- 1.1.0 release
* Fri Nov 9 2018 Ian Barwick ([email protected])
Expand Down
2 changes: 2 additions & 0 deletions packaging/redhat/postgresql12-firebird_fdw.spec
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ rm -rf $RPM_BUILD_ROOT
%endif

%changelog
* Sat Oct 17 2020 Ian Barwick ([email protected])
- 1.2.0 release
* Fri May 31 2019 Ian Barwick ([email protected])
- 1.1.0 release
* Fri Nov 9 2018 Ian Barwick ([email protected])
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
Summary: A PostgreSQL foreign data wrapper (FDW) for Firebird
Name: postgresql94-firebird_fdw
Name: postgresql13-firebird_fdw
Version: 1.2.0
Release: 1
Source: firebird_fdw-%{version}.tar.gz
URL: https://github.com/ibarwick/firebird_fdw
License: PostgreSQL
Group: Productivity/Databases/Tools
Packager: Ian Barwick
BuildRequires: postgresql94-devel firebird-devel
BuildRequires: postgresql13-devel firebird-devel
BuildRequires: libfq
%if 0%{?rhel} && 0%{?rhel} >= 7
BuildRequires: llvm-toolset-7
BuildRequires: llvm5.0
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: postgresql94-server libfq
Requires: postgresql13-server libfq

%define pgsql_path /usr/pgsql-9.4
%define pgsql_path /usr/pgsql-13

%description
This is a foreign data wrapper (FDW) to connect PostgreSQL to Firebird.
Expand Down Expand Up @@ -53,7 +57,13 @@ rm -rf $RPM_BUILD_ROOT
%{pgsql_path}/share/extension/firebird_fdw--1.2.0.sql
%{pgsql_path}/share/extension/firebird_fdw.control

%if 0%{?rhel} && 0%{?rhel} >= 7
%exclude %{pgsql_path}/lib/bitcode
%endif

%changelog
* Sat Oct 17 2020 Ian Barwick ([email protected])
- 1.2.0 release
* Fri May 31 2019 Ian Barwick ([email protected])
- 1.1.0 release
* Fri Nov 9 2018 Ian Barwick ([email protected])
Expand Down
2 changes: 2 additions & 0 deletions packaging/redhat/postgresql95-firebird_fdw.spec
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ rm -rf $RPM_BUILD_ROOT
%{pgsql_path}/share/extension/firebird_fdw.control

%changelog
* Sat Oct 17 2020 Ian Barwick ([email protected])
- 1.2.0 release
* Fri May 31 2019 Ian Barwick ([email protected])
- 1.1.0 release
* Fri Nov 9 2018 Ian Barwick ([email protected])
Expand Down
2 changes: 2 additions & 0 deletions packaging/redhat/postgresql96-firebird_fdw.spec
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ rm -rf $RPM_BUILD_ROOT
%{pgsql_path}/share/extension/firebird_fdw.control

%changelog
* Sat Oct 17 2020 Ian Barwick ([email protected])
- 1.2.0 release
* Fri May 31 2019 Ian Barwick ([email protected])
- 1.1.0 release
* Fri Nov 9 2018 Ian Barwick ([email protected])
Expand Down
24 changes: 21 additions & 3 deletions sql/firebird_fdw--1.1.0--1.2.0.sql
Original file line number Diff line number Diff line change
@@ -1,11 +1,29 @@
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
\echo Use "CREATE EXTENSION firebird_fdw" to load this file. \quit

CREATE FUNCTION firebird_fdw_server_options(
ALTER FUNCTION firebird_fdw_server_options(
IN server_name TEXT,
OUT name TEXT,
OUT value TEXT,
OUT provided BOOL)
OUT provided BOOL
)
STABLE PARALLEL UNSAFE;

CREATE OR REPLACE FUNCTION firebird_fdw_server_options(
IN server_name TEXT,
OUT name TEXT,
OUT value TEXT,
OUT provided BOOL
)
RETURNS SETOF record
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT VOLATILE PARALLEL UNSAFE;

CREATE OR REPLACE FUNCTION firebird_version(
OUT server_name TEXT,
OUT firebird_version INT,
OUT firebird_version_string TEXT
)
RETURNS SETOF record
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT VOLATILE PARALLEL SAFE;
LANGUAGE C STRICT VOLATILE PARALLEL UNSAFE;
6 changes: 3 additions & 3 deletions sql/firebird_fdw--1.2.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ CREATE OR REPLACE FUNCTION firebird_fdw_server_options(
)
RETURNS SETOF record
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT VOLATILE PARALLEL SAFE;
LANGUAGE C STRICT STABLE PARALLEL UNSAFE;

CREATE OR REPLACE FUNCTION firebird_fdw_diag(
OUT name TEXT,
OUT setting TEXT
)
RETURNS SETOF record
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT VOLATILE PARALLEL SAFE;
LANGUAGE C STRICT VOLATILE PARALLEL UNSAFE;

CREATE OR REPLACE FUNCTION firebird_version(
OUT server_name TEXT,
Expand All @@ -66,4 +66,4 @@ CREATE OR REPLACE FUNCTION firebird_version(
)
RETURNS SETOF record
AS 'MODULE_PATHNAME'
LANGUAGE C STRICT VOLATILE PARALLEL SAFE;
LANGUAGE C STRICT VOLATILE PARALLEL UNSAFE;

0 comments on commit 8b961d4

Please sign in to comment.