summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMichael Paquier2020-11-04 01:21:46 +0000
committerMichael Paquier2020-11-04 01:21:46 +0000
commite152506adef4bc503ea7b8ebb4fedc0b8eebda81 (patch)
tree550e61c934bb4e562ec5b946baed8a5ab03d8fc5 /src/include
parent90851d1d26f54ccb4d7b1bc49449138113d6ec83 (diff)
Revert pg_relation_check_pages()
This reverts the following set of commits, following complaints about the lack of portability of the central part of the code in bufmgr.c as well as the use of partition mapping locks during page reads: c780a7a9 f2b88396 b787d4ce ce7f772c 60a51c6b Per discussion with Andres Freund, Robert Haas and myself. Bump catalog version. Discussion: https://postgr.es/m/20201029181729.2nrub47u7yqncsv7@alap3.anarazel.de
Diffstat (limited to 'src/include')
-rw-r--r--src/include/catalog/catversion.h2
-rw-r--r--src/include/catalog/pg_proc.dat7
-rw-r--r--src/include/storage/bufmgr.h3
3 files changed, 1 insertions, 11 deletions
diff --git a/src/include/catalog/catversion.h b/src/include/catalog/catversion.h
index 100e6f0a09a..302b9f6b2bd 100644
--- a/src/include/catalog/catversion.h
+++ b/src/include/catalog/catversion.h
@@ -53,6 +53,6 @@
*/
/* yyyymmddN */
-#define CATALOG_VERSION_NO 202011031
+#define CATALOG_VERSION_NO 202011041
#endif
diff --git a/src/include/catalog/pg_proc.dat b/src/include/catalog/pg_proc.dat
index d9770bbadd8..88378953620 100644
--- a/src/include/catalog/pg_proc.dat
+++ b/src/include/catalog/pg_proc.dat
@@ -10957,13 +10957,6 @@
proallargtypes => '{oid,text,int8,timestamptz}', proargmodes => '{i,o,o,o}',
proargnames => '{tablespace,name,size,modification}',
prosrc => 'pg_ls_tmpdir_1arg' },
-{ oid => '9147', descr => 'check pages of a relation',
- proname => 'pg_relation_check_pages', procost => '10000', prorows => '20',
- proisstrict => 'f', proretset => 't', provolatile => 'v', proparallel => 'r',
- prorettype => 'record', proargtypes => 'regclass text',
- proallargtypes => '{regclass,text,text,int8}', proargmodes => '{i,i,o,o}',
- proargnames => '{relation,fork,path,failed_block_num}',
- prosrc => 'pg_relation_check_pages' },
# hash partitioning constraint function
{ oid => '5028', descr => 'hash partition CHECK constraint',
diff --git a/src/include/storage/bufmgr.h b/src/include/storage/bufmgr.h
index a21cab2eaf8..ee91b8fa26c 100644
--- a/src/include/storage/bufmgr.h
+++ b/src/include/storage/bufmgr.h
@@ -240,9 +240,6 @@ extern void AtProcExit_LocalBuffers(void);
extern void TestForOldSnapshot_impl(Snapshot snapshot, Relation relation);
-extern bool CheckBuffer(struct SMgrRelationData *smgr, ForkNumber forknum,
- BlockNumber blkno);
-
/* in freelist.c */
extern BufferAccessStrategy GetAccessStrategy(BufferAccessStrategyType btype);
extern void FreeAccessStrategy(BufferAccessStrategy strategy);