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
282713a8
Commit
282713a8
authored
Jul 05, 2000
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the regression tests safe for TOAST.
parent
6d1ae0c9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
src/test/regress/expected/sanity_check.out
src/test/regress/expected/sanity_check.out
+3
-2
src/test/regress/expected/type_sanity.out
src/test/regress/expected/type_sanity.out
+1
-2
src/test/regress/sql/sanity_check.sql
src/test/regress/sql/sanity_check.sql
+3
-2
src/test/regress/sql/type_sanity.sql
src/test/regress/sql/type_sanity.sql
+1
-2
No files found.
src/test/regress/expected/sanity_check.out
View file @
282713a8
VACUUM;
VACUUM;
--
--
-- sanity check, if we don't have indices the test will take years to
-- sanity check, if we don't have indices the test will take years to
-- complete.
-- complete. But skip TOAST relations since they will have varying
-- names depending on the current OID counter.
--
--
SELECT relname, relhasindex
SELECT relname, relhasindex
FROM pg_class
FROM pg_class
WHERE relhasindex
WHERE relhasindex
AND relkind != 't'
ORDER BY relname;
ORDER BY relname;
relname | relhasindex
relname | relhasindex
---------------------+-------------
---------------------+-------------
...
...
src/test/regress/expected/type_sanity.out
View file @
282713a8
...
@@ -111,8 +111,7 @@ WHERE p1.typsend = p2.oid AND p1.typtype = 'b' AND
...
@@ -111,8 +111,7 @@ WHERE p1.typsend = p2.oid AND p1.typtype = 'b' AND
-- Look for illegal values in pg_class fields
-- Look for illegal values in pg_class fields
SELECT p1.oid, p1.relname
SELECT p1.oid, p1.relname
FROM pg_class as p1
FROM pg_class as p1
WHERE (p1.relkind != 'r' AND p1.relkind != 'i' AND
WHERE p1.relkind NOT IN ('r', 'i', 's', 'S', 't');
p1.relkind != 's' AND p1.relkind != 'S');
oid | relname
oid | relname
-----+---------
-----+---------
(0 rows)
(0 rows)
...
...
src/test/regress/sql/sanity_check.sql
View file @
282713a8
...
@@ -2,10 +2,11 @@
...
@@ -2,10 +2,11 @@
VACUUM
;
VACUUM
;
--
--
-- sanity check, if we don't have indices the test will take years to
-- sanity check, if we don't have indices the test will take years to
-- complete.
-- complete. But skip TOAST relations since they will have varying
-- names depending on the current OID counter.
--
--
SELECT
relname
,
relhasindex
SELECT
relname
,
relhasindex
FROM
pg_class
FROM
pg_class
WHERE
relhasindex
WHERE
relhasindex
AND
relkind
!=
't'
ORDER
BY
relname
;
ORDER
BY
relname
;
src/test/regress/sql/type_sanity.sql
View file @
282713a8
...
@@ -99,8 +99,7 @@ WHERE p1.typsend = p2.oid AND p1.typtype = 'b' AND
...
@@ -99,8 +99,7 @@ WHERE p1.typsend = p2.oid AND p1.typtype = 'b' AND
SELECT
p1
.
oid
,
p1
.
relname
SELECT
p1
.
oid
,
p1
.
relname
FROM
pg_class
as
p1
FROM
pg_class
as
p1
WHERE
(
p1
.
relkind
!=
'r'
AND
p1
.
relkind
!=
'i'
AND
WHERE
p1
.
relkind
NOT
IN
(
'r'
,
'i'
,
's'
,
'S'
,
't'
);
p1
.
relkind
!=
's'
AND
p1
.
relkind
!=
'S'
);
-- Indexes should have an access method, others not.
-- Indexes should have an access method, others not.
...
...
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