Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Update orafce to 4.9 and enhance it #524

Merged
merged 5 commits into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions gpcontrib/orafce/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
root = true

[*.{c,h,l,y,pl,pm}]
indent_style = tab
indent_size = tab
tab_width = 4

[*.{sgml,xml}]
indent_style = space
indent_size = 1

[*.xsl]
indent_style = space
indent_size = 2
1 change: 1 addition & 0 deletions gpcontrib/orafce/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*.opensdf
*.suo
*.*.user
*.bc
/.deps/
/orafce.sql
/orafce.sql.in
Expand Down
3 changes: 3 additions & 0 deletions gpcontrib/orafce/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ env:

language: C
dist: xenial
arch:
- amd64
- ppc64le
sudo: required

before_install:
Expand Down
2 changes: 1 addition & 1 deletion gpcontrib/orafce/COPYRIGHT.orafce
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
0-clause license ("Zero Clause BSD")

Copyright (C) 2008-2020 by Pavel Stehule <[email protected]>
Copyright (C) 2008-2023 by Pavel Stehule <[email protected]>

Permission to use, copy, modify, and/or distribute this software for any purpose
with or without fee is hereby granted.
Expand Down
8 changes: 4 additions & 4 deletions gpcontrib/orafce/META.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "orafce",
"abstract": "Oracle's compatibility functions and packages",
"description": "This module allows use a well known Oracle's functions and packages inside PostgreSQL",
"version": "3.13.4",
"version": "4.9.2",
"maintainer": [
"Pavel Stehule <[email protected]>",
"Takahiro Itagaki <[email protected]>"
Expand All @@ -14,18 +14,18 @@
"runtime": {
"requires": {
"plpgsql": 0,
"PostgreSQL": "9.5.0"
"PostgreSQL": "11.0.0"
},
"recommends": {
"PostgreSQL": "12.0.0"
"PostgreSQL": "16.0.0"
}
}
},
"provides": {
"orafce": {
"file": "sql/orafce.sql",
"docfile": "README.orafce",
"version": "3.13.4",
"version": "4.9.2",
"abstract": "Oracle's compatibility functions and packages"
}
},
Expand Down
83 changes: 79 additions & 4 deletions gpcontrib/orafce/Makefile
Original file line number Diff line number Diff line change
@@ -1,23 +1,98 @@
MODULE_big = orafce
OBJS= parse_keyword.o convert.o file.o datefce.o magic.o others.o plvstr.o plvdate.o shmmc.o plvsubst.o utility.o plvlex.o alert.o pipe.o sqlparse.o putline.o assert.o plunit.o random.o aggregate.o orafce.o varchar2.o nvarchar2.o charpad.o charlen.o replace_empty_string.o
OBJS= regexp.o\
parse_keyword.o\
convert.o file.o\
datefce.o\
magic.o\
others.o\
plvstr.o\
plvdate.o\
shmmc.o\
plvsubst.o\
utility.o\
plvlex.o\
alert.o\
pipe.o\
sqlparse.o\
putline.o\
assert.o\
plunit.o\
random.o\
aggregate.o\
orafce.o\
varchar2.o\
nvarchar2.o\
charpad.o\
charlen.o\
replace_empty_string.o\
math.o\
dbms_sql.o

EXTENSION = orafce

DATA = orafce--3.13.sql orafce--3.2--3.3.sql orafce--3.3--3.4.sql orafce--3.4--3.5.sql orafce--3.5--3.6.sql orafce--3.6--3.7.sql orafce--3.7--3.8.sql orafce--3.8--3.9.sql orafce--3.9--3.10.sql orafce--3.10--3.11.sql orafce--3.11--3.12.sql orafce--3.12--3.13.sql
DATA = orafce--4.9.sql\
orafce--3.2--3.3.sql\
orafce--3.3--3.4.sql\
orafce--3.4--3.5.sql\
orafce--3.5--3.6.sql\
orafce--3.6--3.7.sql\
orafce--3.7--3.8.sql\
orafce--3.8--3.9.sql\
orafce--3.9--3.10.sql\
orafce--3.10--3.11.sql\
orafce--3.11--3.12.sql\
orafce--3.12--3.13.sql\
orafce--3.13--3.14.sql\
orafce--3.14--3.15.sql\
orafce--3.15--3.16.sql\
orafce--3.16--3.17.sql\
orafce--3.17--3.18.sql\
orafce--3.18--3.19.sql\
orafce--3.19--3.20.sql\
orafce--3.20--3.21.sql\
orafce--3.21--3.22.sql\
orafce--3.22--3.23.sql\
orafce--3.23--3.24.sql\
orafce--3.24--3.25.sql\
orafce--3.25--4.0.sql\
orafce--4.0--4.1.sql\
orafce--4.1--4.2.sql\
orafce--4.2--4.3.sql\
orafce--4.3--4.4.sql\
orafce--4.4--4.5.sql\
orafce--4.5--4.6.sql\
orafce--4.6--4.7.sql\
orafce--4.7--4.8.sql\
orafce--4.8--4.9.sql


DOCS = README.asciidoc COPYRIGHT.orafce INSTALL.orafce

PG_CONFIG ?= pg_config

# make "all" the default target
all:

REGRESS = orafce orafce2 dbms_output dbms_utility files varchar2 nvarchar2 aggregates nlssort dbms_random
REGRESS = orafce\
orafce2\
dbms_output\
dbms_utility\
files\
varchar2\
nvarchar2\
aggregates\
nlssort\
dbms_random\
regexp_func\
gp_partition_by\
gp_distributed_by\
dbms_sql

#REGRESS_OPTS = --load-language=plpgsql --schedule=parallel_schedule --encoding=utf8
REGRESS_OPTS = --schedule=parallel_schedule --encoding=utf8
REGRESS_OPTS += --init-file=init_file

#override CFLAGS += -Wextra -Wimplicit-fallthrough=0
# override CFLAGS += -Wextra -Wimplicit-fallthrough=0

ifdef NO_PGXS
subdir = contrib/$(MODULE_big)
Expand Down
25 changes: 24 additions & 1 deletion gpcontrib/orafce/NEWS
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
Orafce News - History of user-visible changes
Copyright (C) 2008-2016 Orafce Global Development Group
Copyright (C) 2008-2023 Orafce Global Development Group

Version 4.6.0 -
* emit signal by XactCallback instead deferred trigger, store not yet emmited events in
transaction scope memory instead in temporary table. New solution strongly reduces delay
(and CPU usage), but ensures visible changes to outside of transaction that emmited signal.

Version 4.5.0 - 5 Aug 2023
* partial rewriting of dbms_pipe. Now, the synchronization is based on signals instead short sleeping.
New method is significantly faster.

Version 4.0.0 - 2 Nov 2022
* removed support for PostgreSQL 9.6 and 10
* merged orafce_sql project - implementation of dbms_sql package

Version 3.24.0 - 31 Jul 2022
* fixed badly used plain TOAST strategy of types varchar2 and nvarchar2

Version 3.22.0 - 22 Jun 2022
* deuglification - move all objects from public and pg_catalog to oracle schema

Version 3.14.0 - 22. Dec 2020
* conversion function unistr
* bugfix - allows binary upgrade

Version 3.13.4 - 31. May 2020
* enable utl_file on MS
Expand Down
Loading
Loading