Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
ed73072
Package feature that is compatible with Oracle
bigplaice Oct 24, 2024
add8234
missed some code of pl_comp.c, add them back.
bigplaice Aug 30, 2024
7c10456
Fix the issue that server crashes when package with authid property i…
bigplaice Aug 30, 2024
07327e4
support package in exec_check_assignable() of plisql
bigplaice Sep 2, 2024
c3971cd
add K_CALL section for stmt_call in pl_gram.y
bigplaice Sep 2, 2024
44e1d5f
fix bug of func_get_detail
bigplaice Sep 5, 2024
fd8e8a4
bug fix of recheck_cast_function_args()
bigplaice Sep 6, 2024
ef03821
adjust type of authid from integer to bool
bigplaice Sep 12, 2024
99a2718
add regression script for package
bigplaice Oct 24, 2024
e3b99dd
adjust code of pg_dump and package regression cases
bigplaice Sep 27, 2024
15b42b3
add the code of regression test for package
bigplaice Sep 27, 2024
ef023e1
make ivy_postgres_fdw regression script better
bigplaice Sep 27, 2024
18e444c
Adjust the position of attisinvisible in pg_attribute.h
bigplaice Oct 24, 2024
aa33170
remove redundant code from regression script ora_package
bigplaice Oct 24, 2024
4e7f88b
adjust ora_package.out after rebase with main 2024.11.19
bigplaice Nov 19, 2024
3844c68
adjust code after rebase with master branch
bigplaice Nov 25, 2024
93fbbb7
update code after rebase with master
bigplaice Dec 5, 2024
92269d5
adjust code according to check results
bigplaice Dec 5, 2024
2694bed
modify meson.build in src/include/catalog to support package
bigplaice Dec 5, 2024
a976db2
More meson build change for package
bigplaice Dec 5, 2024
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
28 changes: 28 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -835,6 +835,7 @@ with_libraries
with_libs
enable_integer_datetimes
enable_nls
enable_cursor_unname
with_pgport
with_oraport
enable_rpath
Expand Down Expand Up @@ -1530,6 +1531,7 @@ Optional Features:
obsolete option, no longer supported
--enable-nls[=LANGUAGES]
enable Native Language Support
--enable-cursor-unname enable explicit cursor uname
--disable-rpath do not embed shared library search path in
executables
--disable-spinlocks do not use spinlocks
Expand Down Expand Up @@ -3190,6 +3192,32 @@ $as_echo "$enable_nls" >&6; }



#
# CURSOR_UNNAME
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CURSOR_UNNAME is wanted" >&5
$as_echo_n "checking whether CURSOR_UNNAME is wanted... " >&6; }
# Check whether --enable-cursor-unname was given.
if test "${enable_cursor_unname+set}" = set; then :
enableval=$enable_cursor_unname;
case $enableval in
yes)
$as_echo "#define ENABLE_CURSOR_UNNAME 1" >>confdefs.h
;;
no)
:
;;
*)
as_fn_error $? "no argument expected for --enable-cursor-unname option" "$LINENO" 5
;;
esac
else
enable_cursor_unname=no
fi




#
# Default port number (--with-pgport), default 5432
#
Expand Down
10 changes: 10 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,16 @@ AC_MSG_RESULT([$enable_nls])
AC_SUBST(enable_nls)
AC_SUBST(WANTED_LANGUAGES)

#
# CURSOR_UNNAME
#
AC_MSG_CHECKING([whether CURSOR_UNNAME is wanted])
PGAC_ARG_BOOL(enable, cursor-unname,
no, [enable explicit cursor uname],
[AC_DEFINE(ENABLE_CURSOR_UNNAME, 1,
[Define to 1 if you want explicit cursor with unname. (--enable-cursor-uname)])])


#
# Default port number (--with-pgport), default 5432
#
Expand Down
1 change: 1 addition & 0 deletions contrib/ivorysql_ora/src/sysview/sysview--1.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1013,3 +1013,4 @@ SELECT
decode(bitand(s.flags, 64), 64, 'Y', 'N') AS session_flag,null AS keep_value
FROM PG_SEQUENCE s,pg_class c where s.seqrelid = c.oid and c.relowner::regrole = current_user::regrole;


5 changes: 3 additions & 2 deletions contrib/postgres_fdw/expected/ivy_postgres_fdw.out
Original file line number Diff line number Diff line change
Expand Up @@ -13251,12 +13251,13 @@ UPDATE async_pt SET c = c || c WHERE b = 0 RETURNING *;
Filter: (async_pt_3.b = '0'::number)
(19 rows)

UPDATE async_pt SET c = c || c WHERE b = 0 RETURNING *;
UPDATE async_pt SET c = c || c WHERE b = 0;
SELECT * FROM async_pt WHERE b = 0 ORDER BY a DESC;
a | b | c
------+---+----------
3000 | 0 | 00000000
1000 | 0 | 00000000
2000 | 0 | 00000000
1000 | 0 | 00000000
(3 rows)

EXPLAIN (VERBOSE, COSTS OFF)
Expand Down
3 changes: 2 additions & 1 deletion contrib/postgres_fdw/sql/ivy_postgres_fdw.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4107,7 +4107,8 @@ RESET enable_hashjoin;
-- Test that UPDATE/DELETE with inherited target works with async_capable enabled
EXPLAIN (VERBOSE, COSTS OFF)
UPDATE async_pt SET c = c || c WHERE b = 0 RETURNING *;
UPDATE async_pt SET c = c || c WHERE b = 0 RETURNING *;
UPDATE async_pt SET c = c || c WHERE b = 0;
SELECT * FROM async_pt WHERE b = 0 ORDER BY a DESC;
EXPLAIN (VERBOSE, COSTS OFF)
DELETE FROM async_pt WHERE b = 0 RETURNING *;
DELETE FROM async_pt WHERE b = 0;
Expand Down
1 change: 1 addition & 0 deletions src/backend/access/common/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "storage/shm_toc.h"
#include "utils/memutils.h"
#include "utils/typcache.h"
#include "utils/dsa.h"

/* Magic number for per-session DSM TOC. */
#define SESSION_MAGIC 0xabb0fbc9
Expand Down
3 changes: 2 additions & 1 deletion src/backend/access/hash/hashvalidate.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ check_hash_func_signature(Oid funcid, int16 amprocnum, Oid argtype)
elog(ERROR, "cache lookup failed for function %u", funcid);
procform = (Form_pg_proc) GETSTRUCT(tp);

if (procform->prorettype != restype || procform->proretset ||
if (get_func_real_rettype(tp) != restype ||
procform->proretset ||
procform->pronargs != nargs)
result = false;

Expand Down
5 changes: 4 additions & 1 deletion src/backend/access/index/amvalidate.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
#include "catalog/pg_type.h"
#include "parser/parse_coerce.h"
#include "utils/syscache.h"
#include "utils/lsyscache.h"



/*
Expand Down Expand Up @@ -163,7 +165,8 @@ check_amproc_signature(Oid funcid, Oid restype, bool exact,
elog(ERROR, "cache lookup failed for function %u", funcid);
procform = (Form_pg_proc) GETSTRUCT(tp);

if (procform->prorettype != restype || procform->proretset ||
if (get_func_real_rettype(tp) != restype ||
procform->proretset ||
procform->pronargs < minargs || procform->pronargs > maxargs)
result = false;

Expand Down
Loading