]> granicus.if.org Git - postgresql/commitdiff
Check that all aliases of a built-in function have same leakproof property.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 29 May 2015 17:26:21 +0000 (13:26 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 29 May 2015 17:26:21 +0000 (13:26 -0400)
opr_sanity.sql has a test checking that relevant properties of built-in
functions match when the same C function is referenced by multiple pg_proc
entries.  The test neglected to check proleakproof, though, and when
I added that condition it exposed that xideqint4 hadn't been updated to
match xideq.  So fix that as well, and in consequence bump catversion.

This isn't very critical, so no need to worry about fixing back branches.

src/include/catalog/catversion.h
src/include/catalog/pg_proc.h
src/test/regress/expected/opr_sanity.out
src/test/regress/sql/opr_sanity.sql

index 6b56fb5eb364f577216fae56e405e84e2333f7a5..1bedee6e16acc4bced82114f8b8fac976734a8a6 100644 (file)
@@ -53,6 +53,6 @@
  */
 
 /*                                                     yyyymmddN */
-#define CATALOG_VERSION_NO     201505231
+#define CATALOG_VERSION_NO     201505291
 
 #endif
index c0aab38292c37ca25d65842394842e7411b2ca97..6f855eab41e54bdae165ef9af1a7f583cc3ef48b 100644 (file)
@@ -1512,7 +1512,7 @@ DESCR("length");
 DATA(insert OID = 1318 (  length                        PGNSP PGUID 12 1 0 0 0 f f f f t f i 1 0 23 "1042" _null_ _null_ _null_ _null_ _null_ bpcharlen _null_ _null_ _null_ ));
 DESCR("character length");
 
-DATA(insert OID = 1319 (  xideqint4                     PGNSP PGUID 12 1 0 0 0 f f f f t f i 2 0 16 "28 23" _null_ _null_ _null_ _null_ _null_ xideq _null_ _null_ _null_ ));
+DATA(insert OID = 1319 (  xideqint4                     PGNSP PGUID 12 1 0 0 0 f f f t t f i 2 0 16 "28 23" _null_ _null_ _null_ _null_ _null_ xideq _null_ _null_ _null_ ));
 
 DATA(insert OID = 1326 (  interval_div          PGNSP PGUID 12 1 0 0 0 f f f f t f i 2 0 1186 "1186 701" _null_ _null_ _null_ _null_ _null_    interval_div _null_ _null_ _null_ ));
 
index b88912352eba3743df29e6a191dad92dc954aac9..df29fe503ecd6e7a04d2a3a48bfbf150a698ad84 100644 (file)
@@ -130,6 +130,7 @@ WHERE p1.oid < p2.oid AND
     (p1.prolang != p2.prolang OR
      p1.proisagg != p2.proisagg OR
      p1.prosecdef != p2.prosecdef OR
+     p1.proleakproof != p2.proleakproof OR
      p1.proisstrict != p2.proisstrict OR
      p1.proretset != p2.proretset OR
      p1.provolatile != p2.provolatile OR
@@ -572,6 +573,7 @@ interval_gt(interval,interval)
 charlt("char","char")
 tidne(tid,tid)
 tideq(tid,tid)
+xideqint4(xid,integer)
 timetz_eq(time with time zone,time with time zone)
 timetz_ne(time with time zone,time with time zone)
 timetz_lt(time with time zone,time with time zone)
index 6ee01555bd10dc403bd6e22878f984aa28c2ab94..c9bdd77da1818cc60516dc8dc480089ecf97492e 100644 (file)
@@ -118,6 +118,7 @@ WHERE p1.oid < p2.oid AND
     (p1.prolang != p2.prolang OR
      p1.proisagg != p2.proisagg OR
      p1.prosecdef != p2.prosecdef OR
+     p1.proleakproof != p2.proleakproof OR
      p1.proisstrict != p2.proisstrict OR
      p1.proretset != p2.proretset OR
      p1.provolatile != p2.provolatile OR