Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
dc66f1c5
Commit
dc66f1c5
authored
13 years ago
by
Robert Haas
Browse files
Options
Downloads
Patches
Plain Diff
Remove new, intermittently failing regression test.
Per buildfarm.
parent
e37e4486
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/test/regress/expected/create_function_3.out
+1
-41
1 addition, 41 deletions
src/test/regress/expected/create_function_3.out
src/test/regress/sql/create_function_3.sql
+0
-24
0 additions, 24 deletions
src/test/regress/sql/create_function_3.sql
with
1 addition
and
65 deletions
src/test/regress/expected/create_function_3.out
+
1
−
41
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)
...
...
This diff is collapsed.
Click to expand it.
src/test/regress/sql/create_function_3.sql
+
0
−
24
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
--
--
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment