mirror of
https://github.com/postgres/postgres.git
synced 2025-11-22 12:22:45 +03:00
Finish reverting "recheck_on_update" patch.
This reverts commitc203d6cf8and some follow-on fixes, completing the task begun in commit5d28c9bd7. If that feature is ever resurrected, the code will look quite a bit different from this, so it seems best to start from a clean slate. The v11 branch is not touched; in that branch, the recheck_on_update storage option remains present, but nonfunctional and undocumented. Discussion: https://postgr.es/m/20190114223409.3tcvejfhlvbucrv5@alap3.anarazel.de
This commit is contained in:
@@ -27,7 +27,6 @@
|
||||
#include "access/heapam.h"
|
||||
#include "access/multixact.h"
|
||||
#include "access/relscan.h"
|
||||
#include "access/reloptions.h"
|
||||
#include "access/sysattr.h"
|
||||
#include "access/transam.h"
|
||||
#include "access/visibilitymap.h"
|
||||
@@ -355,7 +354,7 @@ ConstructTupleDescriptor(Relation heapRelation,
|
||||
/* Simple index column */
|
||||
const FormData_pg_attribute *from;
|
||||
|
||||
Assert(atnum > 0); /* should've been caught above */
|
||||
Assert(atnum > 0); /* should've been caught above */
|
||||
|
||||
if (atnum > natts) /* safety check */
|
||||
elog(ERROR, "invalid column number %d", atnum);
|
||||
@@ -3903,7 +3902,7 @@ reindex_relation(Oid relid, int flags, int options)
|
||||
|
||||
/* Ensure rd_indexattr is valid; see comments for RelationSetIndexList */
|
||||
if (is_pg_class)
|
||||
(void) RelationGetIndexAttrBitmap(rel, INDEX_ATTR_BITMAP_HOT);
|
||||
(void) RelationGetIndexAttrBitmap(rel, INDEX_ATTR_BITMAP_ALL);
|
||||
|
||||
PG_TRY();
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user