Skip to content

Commit

Permalink
Do not reset SysCacheRelationOidSize and SysCacheSupportingRelOidSize
Browse files Browse the repository at this point in the history
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
lejaokri committed Mar 28, 2024
1 parent e73aed4 commit 68d85e7
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
35 changes: 35 additions & 0 deletions test/JDBC/expected/vacuum.out
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~~


25 changes: 25 additions & 0 deletions test/JDBC/input/vacuum.mix
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

0 comments on commit 68d85e7

Please sign in to comment.