Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef19c9d commit 1e7d008Copy full SHA for 1e7d008
src/backend/access/gist/gist.c
@@ -113,6 +113,16 @@ gistbuild(PG_FUNCTION_ARGS)
113
elog(ERROR, "index \"%s\" already contains data",
114
RelationGetRelationName(index));
115
116
+ /*
117
+ * We can't yet handle unlogged GiST indexes, because we depend on LSNs.
118
+ * This is duplicative of an error in gistbuildempty, but we want to check
119
+ * here so as to throw error before doing all the index-build work.
120
+ */
121
+ if (heap->rd_rel->relpersistence == RELPERSISTENCE_UNLOGGED)
122
+ ereport(ERROR,
123
+ (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
124
+ errmsg("unlogged GiST indexes are not supported")));
125
+
126
/* no locking is needed */
127
initGISTstate(&buildstate.giststate, index);
128
0 commit comments