Remove check of old-style C functions from misc test
authorTomas Vondra <tomas@2ndquadrant.com>
Sun, 16 Jul 2017 19:53:04 +0000 (21:53 +0200)
committerTomas Vondra <tomas@2ndquadrant.com>
Sun, 16 Jul 2017 20:09:06 +0000 (22:09 +0200)
The old-style C functions do not exist anymore, so remove the block of
code testing them (and failing). This test was removed from upstream,
and was only kept by mistake during the merge.

src/test/regress/input/misc.source
src/test/regress/output/misc.source

index c46223bedfaefb2dd977f3f6fbd46456b269d34f..c0f16341987fc4dcc709f058db59b8700492d037 100644 (file)
@@ -252,19 +252,6 @@ SELECT class, aa, a FROM a_star* ORDER BY 1,2;
 -- 
 -- SELECT *, (equipment(CAST((h.*) AS hobbies_r))).name FROM hobbies_r h ORDER BY 1,2,3;
 
---
--- check that old-style C functions work properly with TOASTed values
---
-create table oldstyle_test(i int4, t text);
-insert into oldstyle_test values(null,null);
-insert into oldstyle_test values(0,'12');
-insert into oldstyle_test values(1000,'12');
-insert into oldstyle_test values(0, repeat('x', 50000));
-
-select i, length(t), octet_length(t), oldstyle_length(i,t) from oldstyle_test ORDER BY 1,2,3;
-
-drop table oldstyle_test;
-
 --
 -- functional joins
 --
index da98fa561d499adb5287accf4bf49b6b7ec2be93..71aaa06979e6f564ac3024d543315e7bed67a4c1 100644 (file)
@@ -538,24 +538,6 @@ SELECT class, aa, a FROM a_star* ORDER BY 1,2;
 -- 
 -- SELECT *, (equipment(CAST((h.*) AS hobbies_r))).name FROM hobbies_r h ORDER BY 1,2,3;
 --
--- check that old-style C functions work properly with TOASTed values
---
-create table oldstyle_test(i int4, t text);
-insert into oldstyle_test values(null,null);
-insert into oldstyle_test values(0,'12');
-insert into oldstyle_test values(1000,'12');
-insert into oldstyle_test values(0, repeat('x', 50000));
-select i, length(t), octet_length(t), oldstyle_length(i,t) from oldstyle_test ORDER BY 1,2,3;
-  i   | length | octet_length | oldstyle_length 
-------+--------+--------------+-----------------
-    0 |      2 |            2 |               2
-    0 |  50000 |        50000 |           50000
- 1000 |      2 |            2 |            1002
-      |        |              |                
-(4 rows)
-
-drop table oldstyle_test;
---
 -- functional joins
 --
 --