Skip to content

Commit e623b61

Browse files
authored
Merge pull request IvorySQL#714 from bigplaice/support_package_dev_catchup_master
Support package
2 parents cea97fa + a976db2 commit e623b61

109 files changed

Lines changed: 21752 additions & 353 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

configure

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,7 @@ with_libraries
835835
with_libs
836836
enable_integer_datetimes
837837
enable_nls
838+
enable_cursor_unname
838839
with_pgport
839840
with_oraport
840841
enable_rpath
@@ -1530,6 +1531,7 @@ Optional Features:
15301531
obsolete option, no longer supported
15311532
--enable-nls[=LANGUAGES]
15321533
enable Native Language Support
1534+
--enable-cursor-unname enable explicit cursor uname
15331535
--disable-rpath do not embed shared library search path in
15341536
executables
15351537
--disable-spinlocks do not use spinlocks
@@ -3190,6 +3192,32 @@ $as_echo "$enable_nls" >&6; }
31903192

31913193

31923194

3195+
#
3196+
# CURSOR_UNNAME
3197+
#
3198+
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CURSOR_UNNAME is wanted" >&5
3199+
$as_echo_n "checking whether CURSOR_UNNAME is wanted... " >&6; }
3200+
# Check whether --enable-cursor-unname was given.
3201+
if test "${enable_cursor_unname+set}" = set; then :
3202+
enableval=$enable_cursor_unname;
3203+
case $enableval in
3204+
yes)
3205+
$as_echo "#define ENABLE_CURSOR_UNNAME 1" >>confdefs.h
3206+
;;
3207+
no)
3208+
:
3209+
;;
3210+
*)
3211+
as_fn_error $? "no argument expected for --enable-cursor-unname option" "$LINENO" 5
3212+
;;
3213+
esac
3214+
else
3215+
enable_cursor_unname=no
3216+
fi
3217+
3218+
3219+
3220+
31933221
#
31943222
# Default port number (--with-pgport), default 5432
31953223
#

configure.ac

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,16 @@ AC_MSG_RESULT([$enable_nls])
150150
AC_SUBST(enable_nls)
151151
AC_SUBST(WANTED_LANGUAGES)
152152

153+
#
154+
# CURSOR_UNNAME
155+
#
156+
AC_MSG_CHECKING([whether CURSOR_UNNAME is wanted])
157+
PGAC_ARG_BOOL(enable, cursor-unname,
158+
no, [enable explicit cursor uname],
159+
[AC_DEFINE(ENABLE_CURSOR_UNNAME, 1,
160+
[Define to 1 if you want explicit cursor with unname. (--enable-cursor-uname)])])
161+
162+
153163
#
154164
# Default port number (--with-pgport), default 5432
155165
#

contrib/ivorysql_ora/src/sysview/sysview--1.0.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,3 +1013,4 @@ SELECT
10131013
decode(bitand(s.flags, 64), 64, 'Y', 'N') AS session_flag,null AS keep_value
10141014
FROM PG_SEQUENCE s,pg_class c where s.seqrelid = c.oid and c.relowner::regrole = current_user::regrole;
10151015

1016+

contrib/postgres_fdw/expected/ivy_postgres_fdw.out

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13251,12 +13251,13 @@ UPDATE async_pt SET c = c || c WHERE b = 0 RETURNING *;
1325113251
Filter: (async_pt_3.b = '0'::number)
1325213252
(19 rows)
1325313253

13254-
UPDATE async_pt SET c = c || c WHERE b = 0 RETURNING *;
13254+
UPDATE async_pt SET c = c || c WHERE b = 0;
13255+
SELECT * FROM async_pt WHERE b = 0 ORDER BY a DESC;
1325513256
a | b | c
1325613257
------+---+----------
1325713258
3000 | 0 | 00000000
13258-
1000 | 0 | 00000000
1325913259
2000 | 0 | 00000000
13260+
1000 | 0 | 00000000
1326013261
(3 rows)
1326113262

1326213263
EXPLAIN (VERBOSE, COSTS OFF)

contrib/postgres_fdw/sql/ivy_postgres_fdw.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4107,7 +4107,8 @@ RESET enable_hashjoin;
41074107
-- Test that UPDATE/DELETE with inherited target works with async_capable enabled
41084108
EXPLAIN (VERBOSE, COSTS OFF)
41094109
UPDATE async_pt SET c = c || c WHERE b = 0 RETURNING *;
4110-
UPDATE async_pt SET c = c || c WHERE b = 0 RETURNING *;
4110+
UPDATE async_pt SET c = c || c WHERE b = 0;
4111+
SELECT * FROM async_pt WHERE b = 0 ORDER BY a DESC;
41114112
EXPLAIN (VERBOSE, COSTS OFF)
41124113
DELETE FROM async_pt WHERE b = 0 RETURNING *;
41134114
DELETE FROM async_pt WHERE b = 0;

src/backend/access/common/session.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "storage/shm_toc.h"
2626
#include "utils/memutils.h"
2727
#include "utils/typcache.h"
28+
#include "utils/dsa.h"
2829

2930
/* Magic number for per-session DSM TOC. */
3031
#define SESSION_MAGIC 0xabb0fbc9

src/backend/access/hash/hashvalidate.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,8 @@ check_hash_func_signature(Oid funcid, int16 amprocnum, Oid argtype)
301301
elog(ERROR, "cache lookup failed for function %u", funcid);
302302
procform = (Form_pg_proc) GETSTRUCT(tp);
303303

304-
if (procform->prorettype != restype || procform->proretset ||
304+
if (get_func_real_rettype(tp) != restype ||
305+
procform->proretset ||
305306
procform->pronargs != nargs)
306307
result = false;
307308

src/backend/access/index/amvalidate.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
#include "catalog/pg_type.h"
2626
#include "parser/parse_coerce.h"
2727
#include "utils/syscache.h"
28+
#include "utils/lsyscache.h"
29+
2830

2931

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

166-
if (procform->prorettype != restype || procform->proretset ||
168+
if (get_func_real_rettype(tp) != restype ||
169+
procform->proretset ||
167170
procform->pronargs < minargs || procform->pronargs > maxargs)
168171
result = false;
169172

0 commit comments

Comments
 (0)