mod_storage_sql: Fix column name in index check for PostgreSQL
Forgot to change the column name in 9a7523ea45cb
--- a/plugins/mod_storage_sql.lua Sat Jun 17 13:36:42 2023 +0200
+++ b/plugins/mod_storage_sql.lua Sat Jun 17 13:37:33 2023 +0200
@@ -854,7 +854,7 @@
indices[row[1]] = true;
end
elseif params.driver == "PostgreSQL" then
- for row in engine:select [[SELECT "relname" FROM "pg_indexes" WHERE "tablename"='prosody' AND "indexname"='prosody_index';]] do
+ for row in engine:select [[SELECT "indexname" FROM "pg_indexes" WHERE "tablename"='prosody' AND "indexname"='prosody_index';]] do
indices[row[1]] = true;
end
end