forked from babelfish-for-postgresql/babelfish_extensions
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not reset SysCacheRelationOidSize and SysCacheSupportingRelOidSize
Do not reset SysCacheRelationOidSize and SysCacheSupportingRelOidSize in InitExtensionCatalogCache. Otherwise any invalidation on catalog tables that happened on the babelfish database will not be reported causing inconsistency issues. The code change is in the engine, this commit includes testcase only. Task: BABEL-4119 Signed-off-by: Kristian Lejao <[email protected]>
- Loading branch information
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
|
||
-- psql | ||
-- BABEL-4119 | ||
VACUUM FULL pg_index; | ||
GO | ||
|
||
-- psql currentSchema=master_dbo,public | ||
VACUUM FULL pg_index; | ||
GO | ||
|
||
-- psql currentSchema=sys | ||
-- Confirm we are able to connect still | ||
SELECT oid, relname FROM pg_class WHERE oid=2679; | ||
GO | ||
~~START~~ | ||
oid#!#name | ||
2679#!#pg_index_indexrelid_index | ||
~~END~~ | ||
|
||
|
||
-- psql | ||
-- vacuum full all tables | ||
VACUUM FULL; | ||
GO | ||
|
||
-- psql currentSchema=sys | ||
SELECT oid, relname FROM pg_class WHERE oid=2679; | ||
GO | ||
~~START~~ | ||
oid#!#name | ||
2679#!#pg_index_indexrelid_index | ||
~~END~~ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
-- BABEL-4119 | ||
|
||
-- psql | ||
VACUUM FULL pg_index; | ||
GO | ||
|
||
-- psql currentSchema=master_dbo,public | ||
VACUUM FULL pg_index; | ||
GO | ||
|
||
-- Confirm we are able to connect still | ||
-- psql currentSchema=sys | ||
SELECT oid, relname FROM pg_class WHERE oid=2679; | ||
GO | ||
|
||
-- vacuum full all tables | ||
-- psql | ||
VACUUM FULL; | ||
GO | ||
|
||
-- psql currentSchema=sys | ||
SELECT oid, relname FROM pg_class WHERE oid=2679; | ||
GO | ||
|