Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
dc66f1c5
Commit
dc66f1c5
authored
Feb 13, 2012
by
Robert Haas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove new, intermittently failing regression test.
Per buildfarm.
parent
e37e4486
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
65 deletions
+1
-65
src/test/regress/expected/create_function_3.out
src/test/regress/expected/create_function_3.out
+1
-41
src/test/regress/sql/create_function_3.sql
src/test/regress/sql/create_function_3.sql
+0
-24
No files found.
src/test/regress/expected/create_function_3.out
View file @
dc66f1c5
...
@@ -98,43 +98,6 @@ SELECT proname, prosecdef FROM pg_proc
...
@@ -98,43 +98,6 @@ SELECT proname, prosecdef FROM pg_proc
functext_c_3 | t
functext_c_3 | t
(3 rows)
(3 rows)
--
-- COST
--
CREATE FUNCTION functext_D_1(int,int) RETURNS int LANGUAGE 'sql'
AS 'SELECT $1 + $2';
CREATE FUNCTION functext_D_2(int,int) RETURNS int LANGUAGE 'internal'
AS 'int4pl';
CREATE FUNCTION functext_D_3(int,int) RETURNS int LANGUAGE 'sql'
COST 500 AS 'SELECT $1 * $2';
CREATE FUNCTION functext_D_4(int,int) RETURNS int LANGUAGE 'sql'
COST 0 AS 'SELECT $1 / $2'; -- Error
ERROR: COST must be positive
SELECT proname, procost FROM pg_proc
WHERE oid in ('functext_D_1'::regproc,
'functext_D_2'::regproc,
'functext_D_3'::regproc) ORDER BY proname;
proname | procost
--------------+---------
functext_d_1 | 100
functext_d_2 | 1
functext_d_3 | 500
(3 rows)
ALTER FUNCTION functext_D_1(int,int) STABLE; -- unrelated change, no effect
ALTER FUNCTION functext_D_2(int,int) COST 50;
ALTER FUNCTION functext_D_3(int,int) COST 0.0001;
SELECT proname, procost FROM pg_proc
WHERE oid in ('functext_D_1'::regproc,
'functext_D_2'::regproc,
'functext_D_3'::regproc) ORDER BY proname;
proname | procost
--------------+---------
functext_d_1 | 100
functext_d_2 | 50
functext_d_3 | 0.0001
(3 rows)
--
--
-- LEAKPROOF
-- LEAKPROOF
--
--
...
@@ -440,7 +403,7 @@ SELECT proname, proisstrict FROM pg_proc
...
@@ -440,7 +403,7 @@ SELECT proname, proisstrict FROM pg_proc
-- Cleanups
-- Cleanups
DROP SCHEMA temp_func_test CASCADE;
DROP SCHEMA temp_func_test CASCADE;
NOTICE: drop cascades to 1
9
other objects
NOTICE: drop cascades to 1
6
other objects
DETAIL: drop cascades to function functest_a_1(text,date)
DETAIL: drop cascades to function functest_a_1(text,date)
drop cascades to function functest_a_2(text[])
drop cascades to function functest_a_2(text[])
drop cascades to function functest_a_3()
drop cascades to function functest_a_3()
...
@@ -451,9 +414,6 @@ drop cascades to function functest_b_4(integer)
...
@@ -451,9 +414,6 @@ drop cascades to function functest_b_4(integer)
drop cascades to function functext_c_1(integer)
drop cascades to function functext_c_1(integer)
drop cascades to function functext_c_2(integer)
drop cascades to function functext_c_2(integer)
drop cascades to function functext_c_3(integer)
drop cascades to function functext_c_3(integer)
drop cascades to function functext_d_1(integer,integer)
drop cascades to function functext_d_2(integer,integer)
drop cascades to function functext_d_3(integer,integer)
drop cascades to function functext_e_1(integer)
drop cascades to function functext_e_1(integer)
drop cascades to function functext_e_2(integer)
drop cascades to function functext_e_2(integer)
drop cascades to function functext_f_1(integer)
drop cascades to function functext_f_1(integer)
...
...
src/test/regress/sql/create_function_3.sql
View file @
dc66f1c5
...
@@ -68,30 +68,6 @@ SELECT proname, prosecdef FROM pg_proc
...
@@ -68,30 +68,6 @@ SELECT proname, prosecdef FROM pg_proc
'functext_C_2'
::
regproc
,
'functext_C_2'
::
regproc
,
'functext_C_3'
::
regproc
)
ORDER
BY
proname
;
'functext_C_3'
::
regproc
)
ORDER
BY
proname
;
--
-- COST
--
CREATE
FUNCTION
functext_D_1
(
int
,
int
)
RETURNS
int
LANGUAGE
'sql'
AS
'SELECT $1 + $2'
;
CREATE
FUNCTION
functext_D_2
(
int
,
int
)
RETURNS
int
LANGUAGE
'internal'
AS
'int4pl'
;
CREATE
FUNCTION
functext_D_3
(
int
,
int
)
RETURNS
int
LANGUAGE
'sql'
COST
500
AS
'SELECT $1 * $2'
;
CREATE
FUNCTION
functext_D_4
(
int
,
int
)
RETURNS
int
LANGUAGE
'sql'
COST
0
AS
'SELECT $1 / $2'
;
-- Error
SELECT
proname
,
procost
FROM
pg_proc
WHERE
oid
in
(
'functext_D_1'
::
regproc
,
'functext_D_2'
::
regproc
,
'functext_D_3'
::
regproc
)
ORDER
BY
proname
;
ALTER
FUNCTION
functext_D_1
(
int
,
int
)
STABLE
;
-- unrelated change, no effect
ALTER
FUNCTION
functext_D_2
(
int
,
int
)
COST
50
;
ALTER
FUNCTION
functext_D_3
(
int
,
int
)
COST
0
.
0001
;
SELECT
proname
,
procost
FROM
pg_proc
WHERE
oid
in
(
'functext_D_1'
::
regproc
,
'functext_D_2'
::
regproc
,
'functext_D_3'
::
regproc
)
ORDER
BY
proname
;
--
--
-- LEAKPROOF
-- LEAKPROOF
--
--
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment