We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentd77354e commit331bf67Copy full SHA for 331bf67
src/backend/access/gist/gistbuild.c
@@ -144,6 +144,16 @@ gistbuild(PG_FUNCTION_ARGS)
144
elog(ERROR,"index \"%s\" already contains data",
145
RelationGetRelationName(index));
146
147
+/*
148
+ * We can't yet handle unlogged GiST indexes, because we depend on LSNs.
149
+ * This is duplicative of an error in gistbuildempty, but we want to check
150
+ * here so as to throw error before doing all the index-build work.
151
+ */
152
+if (heap->rd_rel->relpersistence==RELPERSISTENCE_UNLOGGED)
153
+ereport(ERROR,
154
+(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
155
+errmsg("unlogged GiST indexes are not supported")));
156
+
157
/* no locking is needed */
158
buildstate.giststate=initGISTstate(index);
159