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
df823bc4
Commit
df823bc4
authored
Dec 01, 1997
by
Thomas G. Lockhart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deep-six tests using time travel, which has been removed from Postgres.
parent
7a86a2a9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
58 deletions
+0
-58
src/test/regress/expected/purge.out
src/test/regress/expected/purge.out
+0
-28
src/test/regress/sql/purge.sql
src/test/regress/sql/purge.sql
+0
-30
No files found.
src/test/regress/expected/purge.out
deleted
100644 → 0
View file @
7a86a2a9
QUERY: PURGE hash_f8_heap BEFORE 'now';
QUERY: SELECT count(*) AS has_10002 FROM hash_f8_heap[,] h;
has_10002
---------
10002
(1 row)
QUERY: VACUUM hash_f8_heap;
QUERY: SELECT count(*) AS has_10000 FROM hash_f8_heap[,] h;
has_10000
---------
10000
(1 row)
QUERY: PURGE hash_i4_heap AFTER '@ 1 second ago';
QUERY: SELECT count(*) AS has_10002 FROM hash_i4_heap[,] h;
has_10002
---------
10002
(1 row)
QUERY: VACUUM hash_i4_heap;
QUERY: SELECT count(*) AS has_10000 FROM hash_i4_heap[,] h;
has_10000
---------
10000
(1 row)
src/test/regress/sql/purge.sql
deleted
100644 → 0
View file @
7a86a2a9
--
-- PURGE
--
-- we did two updates on each of these 10K tables up above. we should
-- therefore go from 10002 tuples (two of which are not visible without
-- using a time qual) to 10000.
--
-- vacuuming here also tests whether or not the hash index compaction
-- code works; this used to be commented out because the hash AM would
-- miss deleting a bunch of index tuples, which caused big problems when
-- you dereferenced the tids and found garbage..
--
-- absolute time
PURGE
hash_f8_heap
BEFORE
'now'
;
SELECT
count
(
*
)
AS
has_10002
FROM
hash_f8_heap
[,]
h
;
VACUUM
hash_f8_heap
;
SELECT
count
(
*
)
AS
has_10000
FROM
hash_f8_heap
[,]
h
;
-- relative time
PURGE
hash_i4_heap
AFTER
'@ 1 second ago'
;
SELECT
count
(
*
)
AS
has_10002
FROM
hash_i4_heap
[,]
h
;
VACUUM
hash_i4_heap
;
SELECT
count
(
*
)
AS
has_10000
FROM
hash_i4_heap
[,]
h
;
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