From 4fc2a0844ae03c179117c24cb2b6f4d69025af1d Mon Sep 17 00:00:00 2001 From: Darold Gilles Date: Thu, 17 Nov 2016 22:45:49 +0100 Subject: [PATCH] Update changelog and version to 17.6 --- changelog | 71 +++++++++++++++++++++++++- lib/Ora2Pg/GEOM.pm | 2 +- lib/Ora2Pg/MySQL.pm | 2 +- lib/Ora2Pg/PLSQL.pm | 2 +- packaging/README | 8 +-- packaging/RPM/ora2pg.spec | 6 +-- packaging/debian/ora2pg/DEBIAN/control | 2 +- packaging/slackbuild/Ora2Pg.SlackBuild | 2 +- packaging/slackbuild/Ora2Pg.info | 4 +- scripts/ora2pg | 2 +- scripts/ora2pg_scanner | 2 +- 11 files changed, 85 insertions(+), 18 deletions(-) diff --git a/changelog b/changelog index ca3f677e..def7d83d 100644 --- a/changelog +++ b/changelog @@ -1,3 +1,70 @@ +2016 11 17 - v17.6 + +This release adds several new features: + + * Adds export of Oracle Text Indexes into FTS or pg_trgm + based indexes, + * Add export of indexes defined on materialized views + * Allow export of materialized views as foreign tables + when export type is FDW. + * Add replacement of trim() by btrim(). + +Two new configuration directives have been added: + + * USE_INDEX_OPCLASS: when value is set to 1, this will force + Ora2Pg to export all indexes defined on varchar2() and char() + columns using *_pattern_ops operators. If you set it to a value + greater than 1 it will only change indexes on columns where the + character limit is greater or equal than this value. + + * CONTEXT_AS_TRGM: when enabled it forces Ora2Pg to translate + Oracle Text indexes into PostgreSQL indexes using pg_trgm + extension. Default is to translate CONTEXT indexes into FTS + indexes and CTXCAT indexes using pg_trgm. Some time using + pg_trgm based indexes is enough. + +There's also some fixes of issues reported by users, here is the +complete list of changes: + + - Fixed non-use of custom temp_dir (-T). Thanks to Sebastian + Albert for the patch. + - Make export of FTS indexes from materialized view work as + for tables. + - Fix drop of indexes during export of data when DROP_INDEXES + is enabled. + - Remove double quote in function and procedure name from an input + file to avoid creating a file with double quote in its name. + - Fix export of unique index associated to a primary key. + - Move OPTION (key "yes") of FDW table before NOT NUL constraint + and default clause. + - Fix some encoding issue during data export into file. + - Rename FTS indexes prefix output file into FTS_INDEXES and + export CTXCAT Oracle indexes as GIN pg_trgm indexes instead of + FTS indexes. + - Add export of indexes of type CTXCAT as FTS indexes. + - Export triggers and update order for FTS indexes to separate file + prefixed with FTS_INDEXES. + - Exclude from export synonyms starting with a slash that correspond + to incomplete deleted synonyms. Thanks to Nouredine Mallem for the + report. + - Add export of indexes defined on materialized views. Thanks to + Nouredine Mallem for the report. + - Fix export of foreign key and FTS indexes when looking at dba_* + tables and multiple different schemas have the same fk or context + indexes definition. Thanks to Nouredine Mallemfor the patch. + - Fix export of CONTEXT or FULLTEXT Oracle index into PostgreSQL + FTS with trigger and initial update statement. + - Add configuration directive USE_INDEX_OPCLASS to force Ora2Pg to + export all indexes defined on varchar2() and char() columns using + those operators. A value greater than 1 will only change indexes + on columns where the character limit is greater or equal than + this value. + - Fix FDW export of mysql tables. Thanks to yafeishi for the report. + - Fix decode() rewrite. Thanks to Jean-Yves Julliot for the report. + - Fix regression introduced into the export of NUMBER to integer + like PG types. + - Show partition name in progress bar instead of main table name. + 2016 10 20 - v17.5 This is a maintenance release to fix several issues reported by users. @@ -201,7 +268,7 @@ Here is the complete list of other changes: - Fix debug mode that was interromping the last running table dump. Thanks to calbiston for the report. -2016 04 21 - v17.5 +2016 04 21 - v17.6 Errata in first release attempt. @@ -233,7 +300,7 @@ Here is the complete list of other changes: import. Thanks to Guillaume Lelarge for the report. - Fix Makefile.PL to used with latest spec file from Devrim Gündüz and following the advice of calbiston. - - Update spec file to v17.5 and latest change to Makefile.PL + - Update spec file to v17.6 and latest change to Makefile.PL - Replace ora2pg.spec by postgressql.org spec file by Devrim Gunduz. - Generate man page to avoids rpmbuild error. - Fix Windows install. Thanks to Lorena Figueredo for the report. diff --git a/lib/Ora2Pg/GEOM.pm b/lib/Ora2Pg/GEOM.pm index c2e09495..07cc9369 100644 --- a/lib/Ora2Pg/GEOM.pm +++ b/lib/Ora2Pg/GEOM.pm @@ -40,7 +40,7 @@ use vars qw($VERSION); use strict; -$VERSION = '17.5'; +$VERSION = '17.6'; # SDO_ETYPE # Second element of triplet in SDO_ELEM_INFO diff --git a/lib/Ora2Pg/MySQL.pm b/lib/Ora2Pg/MySQL.pm index 0a5c1216..8fbc7d97 100644 --- a/lib/Ora2Pg/MySQL.pm +++ b/lib/Ora2Pg/MySQL.pm @@ -9,7 +9,7 @@ use POSIX qw(locale_h); setlocale(LC_NUMERIC,"C"); -$VERSION = '17.5'; +$VERSION = '17.6'; # These definitions can be overriden from configuration file our %MYSQL_TYPE = ( diff --git a/lib/Ora2Pg/PLSQL.pm b/lib/Ora2Pg/PLSQL.pm index 45760d3a..6680c1d2 100644 --- a/lib/Ora2Pg/PLSQL.pm +++ b/lib/Ora2Pg/PLSQL.pm @@ -31,7 +31,7 @@ use POSIX qw(locale_h); setlocale(LC_NUMERIC,"C"); -$VERSION = '17.5'; +$VERSION = '17.6'; #---------------------------------------------------- # Cost scores used when converting PLSQL to PLPGSQL diff --git a/packaging/README b/packaging/README index eab693c0..941639a7 100644 --- a/packaging/README +++ b/packaging/README @@ -12,13 +12,13 @@ RPM/ The binary package may be found here: - ~/rpmbuild/RPMS/noarch/ora2pg-17.5-1.noarch.rpm + ~/rpmbuild/RPMS/noarch/ora2pg-17.6-1.noarch.rpm or - /usr/src/redhat/RPMS/i386/ora2pg-17.5-1.noarch.rpm + /usr/src/redhat/RPMS/i386/ora2pg-17.6-1.noarch.rpm To install run: - rpm -i ~/rpmbuild/RPMS/noarch/ora2pg-17.5-1.noarch.rpm + rpm -i ~/rpmbuild/RPMS/noarch/ora2pg-17.6-1.noarch.rpm slackbuild/ @@ -30,7 +30,7 @@ slackbuild/ then take a look at /tmp/build/ to find the Slackware package. To install run the following command: - installpkg /tmp/build/ora2pg-17.5-i486-1gda.tgz + installpkg /tmp/build/ora2pg-17.6-i486-1gda.tgz debian/ diff --git a/packaging/RPM/ora2pg.spec b/packaging/RPM/ora2pg.spec index b33e9a6c..2d630b11 100644 --- a/packaging/RPM/ora2pg.spec +++ b/packaging/RPM/ora2pg.spec @@ -1,6 +1,6 @@ Summary: Oracle to PostgreSQL database schema converter Name: ora2pg -Version: 17.5 +Version: 17.6 Release: 1%{?dist} Group: Applications/Databases License: GPLv3+ @@ -55,8 +55,8 @@ Oracle database to a PostgreSQL database. %{_docdir}/%{name}-%{version}/* %changelog -* Sat Apr 9 2016 Gilles Darold 17.5 -- Update to 17.5 +* Sat Apr 9 2016 Gilles Darold 17.6 +- Update to 17.6 - Append %{name} to CONFDIR and %{version} to DOCDIR in %files section * Fri Mar 25 2016 Devrim Gündüz 17.2-1 diff --git a/packaging/debian/ora2pg/DEBIAN/control b/packaging/debian/ora2pg/DEBIAN/control index aa928c0a..beb3fcf4 100644 --- a/packaging/debian/ora2pg/DEBIAN/control +++ b/packaging/debian/ora2pg/DEBIAN/control @@ -1,5 +1,5 @@ Package: ora2pg -Version: 17.5 +Version: 17.6 Priority: optional Architecture: all Essential: no diff --git a/packaging/slackbuild/Ora2Pg.SlackBuild b/packaging/slackbuild/Ora2Pg.SlackBuild index ba4c1225..d6e3cd61 100644 --- a/packaging/slackbuild/Ora2Pg.SlackBuild +++ b/packaging/slackbuild/Ora2Pg.SlackBuild @@ -12,7 +12,7 @@ ## Fill these variables to your needs ## NAMESRC=${NAMESRC:-ora2pg} -VERSION=${VERSION:-17.5} +VERSION=${VERSION:-17.6} EXT=${EXT:-tar.bz2} NAMEPKG=${NAMEPKG:-ora2pg} PKGEXT=${PKGEXT:-tgz/txz} diff --git a/packaging/slackbuild/Ora2Pg.info b/packaging/slackbuild/Ora2Pg.info index 68a7a412..8083eb38 100644 --- a/packaging/slackbuild/Ora2Pg.info +++ b/packaging/slackbuild/Ora2Pg.info @@ -1,7 +1,7 @@ PRGNAM="Ora2Pg" -VERSION="17.5" +VERSION="17.6" HOMEPAGE="http://ora2pg.darold.net/" -DOWNLOAD="http://downloads.sourceforge.net/ora2pg/ora2pg-17.5.tar.gz" +DOWNLOAD="http://downloads.sourceforge.net/ora2pg/ora2pg-17.6.tar.gz" MD5SUM="" DOWNLOAD_x86_64="UNTESTED" MD5SUM_x86_64="" diff --git a/scripts/ora2pg b/scripts/ora2pg index 6f55d83a..f86b284e 100644 --- a/scripts/ora2pg +++ b/scripts/ora2pg @@ -31,7 +31,7 @@ use POSIX qw(locale_h sys_wait_h _exit); setlocale(LC_NUMERIC, ''); setlocale(LC_ALL, 'C'); -my $VERSION = '17.5'; +my $VERSION = '17.6'; $| = 1; diff --git a/scripts/ora2pg_scanner b/scripts/ora2pg_scanner index e5373ea5..a17dc879 100644 --- a/scripts/ora2pg_scanner +++ b/scripts/ora2pg_scanner @@ -26,7 +26,7 @@ use strict; use Getopt::Long qw(:config no_ignore_case bundling); -my $VERSION = '17.5'; +my $VERSION = '17.6'; my @DB_DNS = (); my $OUTDIR = '';