Postgresql Postgres错误:右同胞的左链接不匹配

Postgresql Postgres错误:右同胞的左链接不匹配,postgresql,psql,Postgresql,Psql,我在docker容器中使用postgres最新版本,出于某种原因我出现了这个错误 一切都停止了: The "postgresql" authentication provider has encountered an internal error which will halt the authentication process. If this is unexpected or you are the developer of this authentication provider, yo

我在docker容器中使用postgres最新版本,出于某种原因我出现了这个错误 一切都停止了:

The "postgresql" authentication provider has encountered an internal error which will halt the authentication process. If this is unexpected or you are the developer of this authentication provider, you may wish to enable debug-level logging. If this is expected and you wish to ignore such failures in the future, please set "skip-if-unavailable: postgresql" within your guacamole.properties.
ERROR o.a.g.rest.RESTExceptionMapper - Unexpected internal error:
### Error updating database.  Cause: org.postgresql.util.PSQLException: ERROR: right sibling's left-link doesn't match: block 2 links to 11010 instead of expected 11007 in index "guacamole_user_history_user_id"
### The error may involve org.apache.guacamole.auth.jdbc.user.UserRecordMapper.insert-Inline
### The error occurred while setting parameters
### SQL: INSERT INTO guacamole_user_history (             remote_host,             user_id,             username,             start_date,             end_date         )         VALUES (             ?,             (SELECT user_id FROM guacamole_user              JOIN guacamole_entity ON guacamole_user.entity_id = guacamole_entity.entity_id              WHERE                    guacamole_entity.name = ?                AND guacamole_entity.type = 'USER'::guacamole_entity_type),             ?,             ?,             ?         )
### Cause: org.postgresql.util.PSQLException: ERROR: right sibling's left-link doesn't match: block 2 links to 11010 instead of expected 11007 in index "guacamole_user_history_user_id"
这是来自postgres conatiner的:

ERROR:  right sibling's left-link doesn't match: block 2 links to 11010 instead of expected 11007 in index "guacamole_user_history_user_id"
    STATEMENT:  INSERT INTO guacamole_user_history (
            remote_host,
              user_id,
                 username,
                 start_date,
                 end_date
             )
            VALUES (
                $1,
                 (SELECT user_id FROM guacamole_user
                  JOIN guacamole_entity ON guacamole_user.entity_id = guacamole_entity.entity_id
                 WHERE
                     guacamole_entity.name = $2
                     AND guacamole_entity.type = 'USER'::guacamole_entity_type),
                  $3,
                $4,
                  $5
         ) RETURNING *
当时我没有对DB做任何特别的事情,只是简单的选择查询。 所有人都在过去3个月里工作 我如何解决这个问题?

好的

这解决了我的问题:

REINDEX TABLE guacamole_user_history;

但你却饱受腐败之苦。检查你的硬件!转储并恢复到新创建的群集!我在上面跑过\h,一切似乎都很好,我还可以检查什么?它恢复正常工作,同样,这是在容器中,而不是在主机数据库中。我确实多次重新创建了它们是的,它似乎工作正常,也许一切都很好。但也许有一些腐败潜伏在某处。数据损坏可能会蔓延。这些数据对你来说重要吗?是的,它很重要,我没有做任何后推,那就别玩了。照我说的做。作为一名DBA,我想说的是,您没有备份这一事实证明了数据并不真正重要。。。