# HG changeset patch # User Kim Alvefur # Date 1687001853 -7200 # Node ID 706f7d1affc28f395c479a79386220aa9904967c # Parent cf2a907ac130f440ecbace97fbac01695f18806b mod_storage_sql: Fix column name in index check for PostgreSQL Forgot to change the column name in 9a7523ea45cb diff -r cf2a907ac130 -r 706f7d1affc2 plugins/mod_storage_sql.lua --- 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