-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
137 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "firebird_fdw", | ||
"abstract": "A PostgreSQL foreign data wrapper (FDW) for Firebird", | ||
"version": "0.5.0", | ||
"version": "1.0.0", | ||
"release_status": "stable", | ||
"maintainer": "Ian Barwick <[email protected]>", | ||
"license": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Firebird FDW | ||
comment = 'foreign data wrapper for Firebird' | ||
default_version = '0.5.0' | ||
default_version = '1.0.0' | ||
module_pathname = '$libdir/firebird_fdw' | ||
relocatable = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Summary: A PostgreSQL foreign data wrapper (FDW) for Firebird | ||
Name: postgresql10-firebird_fdw | ||
Version: 0.5.0 | ||
Version: 1.0.0 | ||
Release: 1 | ||
Source: firebird_fdw-%{version}.tar.gz | ||
URL: https://github.com/ibarwick/firebird_fdw | ||
|
@@ -45,9 +45,13 @@ rm -rf $RPM_BUILD_ROOT | |
%{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--0.5.0--1.0.0.sql | ||
%{pgsql_path}/share/extension/firebird_fdw--1.0.0.sql | ||
%{pgsql_path}/share/extension/firebird_fdw.control | ||
|
||
%changelog | ||
* Fri Nov 9 2018 Ian Barwick ([email protected]) | ||
- 1.0.0 release | ||
* Fri Oct 12 2018 Ian Barwick ([email protected]) | ||
- 0.5.0 release | ||
* Tue Oct 2 2018 Ian Barwick ([email protected]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
Summary: A PostgreSQL foreign data wrapper (FDW) for Firebird | ||
Name: postgresql11-firebird_fdw | ||
Version: 1.0.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: postgresql11-devel firebird-devel | ||
BuildRequires: libfq | ||
BuildRoot: %{_tmppath}/%{name}-%{version}-build | ||
Requires: postgresql11-server libfq | ||
|
||
%define pgsql_path /usr/pgsql-11 | ||
|
||
%description | ||
This is a foreign data wrapper (FDW) to connect PostgreSQL to Firebird. | ||
It provides both read (SELECT) and write (INSERT/UPDATE/DELETE) | ||
support, WHERE-clause pushdowns, connection caching and Firebird transaction | ||
support. | ||
|
||
This code is very much work-in-progress; USE AT YOUR OWN RISK. | ||
|
||
%prep | ||
%setup | ||
|
||
%build | ||
export PG_CONFIG=%{pgsql_path}/bin/pg_config | ||
PG_CPPFLAGS="-I/usr/include/firebird" USE_PGXS=1 make | ||
|
||
%install | ||
rm -rf $RPM_BUILD_ROOT | ||
export PG_CONFIG=%{pgsql_path}/bin/pg_config | ||
USE_PGXS=1 make DESTDIR=$RPM_BUILD_ROOT install | ||
|
||
%clean | ||
rm -rf $RPM_BUILD_ROOT | ||
|
||
%files | ||
%defattr(-, root, root) | ||
%{pgsql_path}/lib/firebird_fdw.so | ||
%{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--0.5.0--1.0.0.sql | ||
%{pgsql_path}/share/extension/firebird_fdw--1.0.0.sql | ||
%{pgsql_path}/share/extension/firebird_fdw.control | ||
|
||
%changelog | ||
* Fri Nov 9 2018 Ian Barwick ([email protected]) | ||
- 1.0.0 release | ||
* Fri Oct 12 2018 Ian Barwick ([email protected]) | ||
- 0.5.0 release | ||
* Tue Oct 2 2018 Ian Barwick ([email protected]) | ||
- 0.4.0 release | ||
* Sun Apr 22 2018 Ian Barwick ([email protected]) | ||
- 0.3.0 release | ||
* Sun Feb 2 2014 Ian Barwick ([email protected]) | ||
- First draft |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Summary: A PostgreSQL foreign data wrapper (FDW) for Firebird | ||
Name: postgresql93-firebird_fdw | ||
Version: 0.5.0 | ||
Version: 1.0.0 | ||
Release: 1 | ||
Source: firebird_fdw-%{version}.tar.gz | ||
URL: https://github.com/ibarwick/firebird_fdw | ||
|
@@ -45,9 +45,13 @@ rm -rf $RPM_BUILD_ROOT | |
%{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--0.5.0--1.0.0.sql | ||
%{pgsql_path}/share/extension/firebird_fdw--1.0.0.sql | ||
%{pgsql_path}/share/extension/firebird_fdw.control | ||
|
||
%changelog | ||
* Fri Nov 9 2018 Ian Barwick ([email protected]) | ||
- 1.0.0 release | ||
* Fri Oct 12 2018 Ian Barwick ([email protected]) | ||
- 0.5.0 release | ||
* Tue Oct 2 2018 Ian Barwick ([email protected]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Summary: A PostgreSQL foreign data wrapper (FDW) for Firebird | ||
Name: postgresql94-firebird_fdw | ||
Version: 0.5.0 | ||
Version: 1.0.0 | ||
Release: 1 | ||
Source: firebird_fdw-%{version}.tar.gz | ||
URL: https://github.com/ibarwick/firebird_fdw | ||
|
@@ -45,9 +45,13 @@ rm -rf $RPM_BUILD_ROOT | |
%{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--0.5.0--1.0.0.sql | ||
%{pgsql_path}/share/extension/firebird_fdw--1.0.0.sql | ||
%{pgsql_path}/share/extension/firebird_fdw.control | ||
|
||
%changelog | ||
* Fri Nov 9 2018 Ian Barwick ([email protected]) | ||
- 1.0.0 release | ||
* Fri Oct 12 2018 Ian Barwick ([email protected]) | ||
- 0.5.0 release | ||
* Tue Oct 2 2018 Ian Barwick ([email protected]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Summary: A PostgreSQL foreign data wrapper (FDW) for Firebird | ||
Name: postgresql95-firebird_fdw | ||
Version: 0.5.0 | ||
Version: 1.0.0 | ||
Release: 1 | ||
Source: firebird_fdw-%{version}.tar.gz | ||
URL: https://github.com/ibarwick/firebird_fdw | ||
|
@@ -45,9 +45,13 @@ rm -rf $RPM_BUILD_ROOT | |
%{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--0.5.0--1.0.0.sql | ||
%{pgsql_path}/share/extension/firebird_fdw--1.0.0.sql | ||
%{pgsql_path}/share/extension/firebird_fdw.control | ||
|
||
%changelog | ||
* Fri Nov 9 2018 Ian Barwick ([email protected]) | ||
- 1.0.0 release | ||
* Fri Oct 12 2018 Ian Barwick ([email protected]) | ||
- 0.5.0 release | ||
* Tue Oct 2 2018 Ian Barwick ([email protected]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Summary: A PostgreSQL foreign data wrapper (FDW) for Firebird | ||
Name: postgresql96-firebird_fdw | ||
Version: 0.5.0 | ||
Version: 1.0.0 | ||
Release: 1 | ||
Source: firebird_fdw-%{version}.tar.gz | ||
URL: https://github.com/ibarwick/firebird_fdw | ||
|
@@ -45,9 +45,13 @@ rm -rf $RPM_BUILD_ROOT | |
%{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--0.5.0--1.0.0.sql | ||
%{pgsql_path}/share/extension/firebird_fdw--1.0.0.sql | ||
%{pgsql_path}/share/extension/firebird_fdw.control | ||
|
||
%changelog | ||
* Fri Nov 9 2018 Ian Barwick ([email protected]) | ||
- 1.0.0 release | ||
* Fri Oct 12 2018 Ian Barwick ([email protected]) | ||
- 0.5.0 release | ||
* Tue Oct 2 2018 Ian Barwick ([email protected]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <[email protected]> | ||
* | ||
* IDENTIFICATION | ||
* firebird_fdw/sql/firebird_fdw--1.0.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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters