Skip to content

Commit

Permalink
0.5.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
ibarwick committed Oct 12, 2018
1 parent 1e60a2d commit 5532a05
Show file tree
Hide file tree
Showing 11 changed files with 71 additions and 11 deletions.
6 changes: 3 additions & 3 deletions META.json
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.4.0",
"version": "0.5.0",
"release_status": "unstable",
"maintainer": "Ian Barwick <barwick@gmail.com>",
"license": {
Expand All @@ -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": {
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion firebird_fdw.control
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.4.0'
default_version = '0.5.0'
module_pathname = '$libdir/firebird_fdw'
relocatable = true
6 changes: 5 additions & 1 deletion packaging/redhat/postgresql10-firebird_fdw.spec
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.4.0
Version: 0.5.0
Release: 1
Source: firebird_fdw-%{version}.tar.gz
URL: https://github.com/ibarwick/firebird_fdw
Expand Down Expand Up @@ -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)
Expand Down
6 changes: 5 additions & 1 deletion packaging/redhat/postgresql93-firebird_fdw.spec
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.4.0
Version: 0.5.0
Release: 1
Source: firebird_fdw-%{version}.tar.gz
URL: https://github.com/ibarwick/firebird_fdw
Expand Down Expand Up @@ -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)
Expand Down
6 changes: 5 additions & 1 deletion packaging/redhat/postgresql94-firebird_fdw.spec
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.4.0
Version: 0.5.0
Release: 1
Source: firebird_fdw-%{version}.tar.gz
URL: https://github.com/ibarwick/firebird_fdw
Expand Down Expand Up @@ -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)
Expand Down
6 changes: 5 additions & 1 deletion packaging/redhat/postgresql95-firebird_fdw.spec
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.4.0
Version: 0.5.0
Release: 1
Source: firebird_fdw-%{version}.tar.gz
URL: https://github.com/ibarwick/firebird_fdw
Expand Down Expand Up @@ -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)
Expand Down
6 changes: 5 additions & 1 deletion packaging/redhat/postgresql96-firebird_fdw.spec
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.4.0
Version: 0.5.0
Release: 1
Source: firebird_fdw-%{version}.tar.gz
URL: https://github.com/ibarwick/firebird_fdw
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions sql/firebird_fdw--0.4.0--0.5.0.sql
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
36 changes: 36 additions & 0 deletions sql/firebird_fdw--0.5.0.sql
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 <barwick@sql-info.de>
*
* 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;
2 changes: 1 addition & 1 deletion src/firebird_fdw.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5532a05

Please sign in to comment.