diff --git a/META.json b/META.json index 71b4ac4..1319167 100644 --- a/META.json +++ b/META.json @@ -1,7 +1,7 @@ { "name": "firebird_fdw", "abstract": "A PostgreSQL foreign data wrapper (FDW) for Firebird", - "version": "0.4.0", + "version": "0.5.0", "release_status": "unstable", "maintainer": "Ian Barwick ", "license": { @@ -17,9 +17,9 @@ "provides": { "firebird_fdw": { "abstract": "A PostgreSQL foreign data wrapper (FDW) for Firebird", - "file": "firebird_fdw--0.4.0.sql", + "file": "firebird_fdw--0.5.0.sql", "docfile": "README.md", - "version": "0.4.0" + "version": "0.5.0" } }, "resources": { diff --git a/Makefile b/Makefile index c8ee3cb..ffd7dde 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,9 @@ SHLIB_LINK += -lfq -lfbclient DATA = sql/firebird_fdw--0.3.0.sql \ sql/firebird_fdw--0.3.0--0.4.0.sql \ - sql/firebird_fdw--0.4.0.sql + sql/firebird_fdw--0.4.0.sql \ + sql/firebird_fdw--0.4.0--0.5.0.sql \ + sql/firebird_fdw--0.5.0.sql PGXS := $(shell $(PG_CONFIG) --pgxs) include $(PGXS) diff --git a/firebird_fdw.control b/firebird_fdw.control index e94ec07..dc5a468 100644 --- a/firebird_fdw.control +++ b/firebird_fdw.control @@ -1,5 +1,5 @@ # Firebird FDW comment = 'foreign data wrapper for Firebird' -default_version = '0.4.0' +default_version = '0.5.0' module_pathname = '$libdir/firebird_fdw' relocatable = true diff --git a/packaging/redhat/postgresql10-firebird_fdw.spec b/packaging/redhat/postgresql10-firebird_fdw.spec index 9e22367..7081db8 100644 --- a/packaging/redhat/postgresql10-firebird_fdw.spec +++ b/packaging/redhat/postgresql10-firebird_fdw.spec @@ -1,6 +1,6 @@ Summary: A PostgreSQL foreign data wrapper (FDW) for Firebird Name: postgresql10-firebird_fdw -Version: 0.4.0 +Version: 0.5.0 Release: 1 Source: firebird_fdw-%{version}.tar.gz URL: https://github.com/ibarwick/firebird_fdw @@ -43,9 +43,13 @@ rm -rf $RPM_BUILD_ROOT %{pgsql_path}/share/extension/firebird_fdw--0.3.0.sql %{pgsql_path}/share/extension/firebird_fdw--0.3.0--0.4.0.sql %{pgsql_path}/share/extension/firebird_fdw--0.4.0.sql +%{pgsql_path}/share/extension/firebird_fdw--0.4.0--0.5.0.sql +%{pgsql_path}/share/extension/firebird_fdw--0.5.0.sql %{pgsql_path}/share/extension/firebird_fdw.control %changelog +* Fri Oct 12 2018 Ian Barwick (barwick@gmail.com) +- 0.5.0 release * Tue Oct 2 2018 Ian Barwick (barwick@gmail.com) - 0.4.0 release * Sun Apr 22 2018 Ian Barwick (barwick@gmail.com) diff --git a/packaging/redhat/postgresql93-firebird_fdw.spec b/packaging/redhat/postgresql93-firebird_fdw.spec index e713278..a5f477b 100644 --- a/packaging/redhat/postgresql93-firebird_fdw.spec +++ b/packaging/redhat/postgresql93-firebird_fdw.spec @@ -1,6 +1,6 @@ Summary: A PostgreSQL foreign data wrapper (FDW) for Firebird Name: postgresql93-firebird_fdw -Version: 0.4.0 +Version: 0.5.0 Release: 1 Source: firebird_fdw-%{version}.tar.gz URL: https://github.com/ibarwick/firebird_fdw @@ -43,9 +43,13 @@ rm -rf $RPM_BUILD_ROOT %{pgsql_path}/share/extension/firebird_fdw--0.3.0.sql %{pgsql_path}/share/extension/firebird_fdw--0.3.0--0.4.0.sql %{pgsql_path}/share/extension/firebird_fdw--0.4.0.sql +%{pgsql_path}/share/extension/firebird_fdw--0.4.0--0.5.0.sql +%{pgsql_path}/share/extension/firebird_fdw--0.5.0.sql %{pgsql_path}/share/extension/firebird_fdw.control %changelog +* Fri Oct 12 2018 Ian Barwick (barwick@gmail.com) +- 0.5.0 release * Tue Oct 2 2018 Ian Barwick (barwick@gmail.com) - 0.4.0 release * Sun Apr 22 2018 Ian Barwick (barwick@gmail.com) diff --git a/packaging/redhat/postgresql94-firebird_fdw.spec b/packaging/redhat/postgresql94-firebird_fdw.spec index 373549a..937fa6f 100644 --- a/packaging/redhat/postgresql94-firebird_fdw.spec +++ b/packaging/redhat/postgresql94-firebird_fdw.spec @@ -1,6 +1,6 @@ Summary: A PostgreSQL foreign data wrapper (FDW) for Firebird Name: postgresql94-firebird_fdw -Version: 0.4.0 +Version: 0.5.0 Release: 1 Source: firebird_fdw-%{version}.tar.gz URL: https://github.com/ibarwick/firebird_fdw @@ -43,9 +43,13 @@ rm -rf $RPM_BUILD_ROOT %{pgsql_path}/share/extension/firebird_fdw--0.3.0.sql %{pgsql_path}/share/extension/firebird_fdw--0.3.0--0.4.0.sql %{pgsql_path}/share/extension/firebird_fdw--0.4.0.sql +%{pgsql_path}/share/extension/firebird_fdw--0.4.0--0.5.0.sql +%{pgsql_path}/share/extension/firebird_fdw--0.5.0.sql %{pgsql_path}/share/extension/firebird_fdw.control %changelog +* Fri Oct 12 2018 Ian Barwick (barwick@gmail.com) +- 0.5.0 release * Tue Oct 2 2018 Ian Barwick (barwick@gmail.com) - 0.4.0 release * Sun Apr 22 2018 Ian Barwick (barwick@gmail.com) diff --git a/packaging/redhat/postgresql95-firebird_fdw.spec b/packaging/redhat/postgresql95-firebird_fdw.spec index 7b51353..b7099ad 100644 --- a/packaging/redhat/postgresql95-firebird_fdw.spec +++ b/packaging/redhat/postgresql95-firebird_fdw.spec @@ -1,6 +1,6 @@ Summary: A PostgreSQL foreign data wrapper (FDW) for Firebird Name: postgresql95-firebird_fdw -Version: 0.4.0 +Version: 0.5.0 Release: 1 Source: firebird_fdw-%{version}.tar.gz URL: https://github.com/ibarwick/firebird_fdw @@ -43,9 +43,13 @@ rm -rf $RPM_BUILD_ROOT %{pgsql_path}/share/extension/firebird_fdw--0.3.0.sql %{pgsql_path}/share/extension/firebird_fdw--0.3.0--0.4.0.sql %{pgsql_path}/share/extension/firebird_fdw--0.4.0.sql +%{pgsql_path}/share/extension/firebird_fdw--0.4.0--0.5.0.sql +%{pgsql_path}/share/extension/firebird_fdw--0.5.0.sql %{pgsql_path}/share/extension/firebird_fdw.control %changelog +* Fri Oct 12 2018 Ian Barwick (barwick@gmail.com) +- 0.5.0 release * Tue Oct 2 2018 Ian Barwick (barwick@gmail.com) - 0.4.0 release * Sun Apr 22 2018 Ian Barwick (barwick@gmail.com) diff --git a/packaging/redhat/postgresql96-firebird_fdw.spec b/packaging/redhat/postgresql96-firebird_fdw.spec index 19011bd..2cf854b 100644 --- a/packaging/redhat/postgresql96-firebird_fdw.spec +++ b/packaging/redhat/postgresql96-firebird_fdw.spec @@ -1,6 +1,6 @@ Summary: A PostgreSQL foreign data wrapper (FDW) for Firebird Name: postgresql96-firebird_fdw -Version: 0.4.0 +Version: 0.5.0 Release: 1 Source: firebird_fdw-%{version}.tar.gz URL: https://github.com/ibarwick/firebird_fdw @@ -43,9 +43,13 @@ rm -rf $RPM_BUILD_ROOT %{pgsql_path}/share/extension/firebird_fdw--0.3.0.sql %{pgsql_path}/share/extension/firebird_fdw--0.3.0--0.4.0.sql %{pgsql_path}/share/extension/firebird_fdw--0.4.0.sql +%{pgsql_path}/share/extension/firebird_fdw--0.4.0--0.5.0.sql +%{pgsql_path}/share/extension/firebird_fdw--0.5.0.sql %{pgsql_path}/share/extension/firebird_fdw.control %changelog +* Fri Oct 12 2018 Ian Barwick (barwick@gmail.com) +- 0.5.0 release * Tue Oct 2 2018 Ian Barwick (barwick@gmail.com) - 0.4.0 release * Sun Apr 22 2018 Ian Barwick (barwick@gmail.com) diff --git a/sql/firebird_fdw--0.4.0--0.5.0.sql b/sql/firebird_fdw--0.4.0--0.5.0.sql new file mode 100644 index 0000000..a812066 --- /dev/null +++ b/sql/firebird_fdw--0.4.0--0.5.0.sql @@ -0,0 +1,2 @@ +-- complain if script is sourced in psql, rather than via CREATE EXTENSION +\echo Use "CREATE EXTENSION firebird_fdw" to load this file. \quit diff --git a/sql/firebird_fdw--0.5.0.sql b/sql/firebird_fdw--0.5.0.sql new file mode 100644 index 0000000..7d8c385 --- /dev/null +++ b/sql/firebird_fdw--0.5.0.sql @@ -0,0 +1,36 @@ +/*------------------------------------------------------------------------- + * + * foreign-data wrapper for Firebird + * + * Copyright (c) 2013-2018 Ian Barwick + * + * This software is released under the PostgreSQL Licence + * + * Author: Ian Barwick + * + * IDENTIFICATION + * firebird_fdw/sql/firebird_fdw--0.5.0.sql + * + *------------------------------------------------------------------------- + */ + +-- 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_handler() +RETURNS fdw_handler +AS 'MODULE_PATHNAME' +LANGUAGE C STRICT; + +CREATE FUNCTION firebird_fdw_validator(text[], oid) +RETURNS void +AS 'MODULE_PATHNAME' +LANGUAGE C STRICT; + +CREATE FOREIGN DATA WRAPPER firebird_fdw + HANDLER firebird_fdw_handler + VALIDATOR firebird_fdw_validator; + +CREATE OR REPLACE FUNCTION firebird_fdw_version() + RETURNS pg_catalog.int4 STRICT + AS 'MODULE_PATHNAME' LANGUAGE C; diff --git a/src/firebird_fdw.h b/src/firebird_fdw.h index 3f5a2dc..3a2aad4 100644 --- a/src/firebird_fdw.h +++ b/src/firebird_fdw.h @@ -31,7 +31,7 @@ #include "libfq.h" -#define FIREBIRD_FDW_VERSION 400 +#define FIREBIRD_FDW_VERSION 500 #define FB_FDW_LOGPREFIX "[firebird_fdw] " #define FB_FDW_LOGPREFIX_LEN strlen(FB_FDW_LOGPREFIX)