> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 重新同步特定表

> 重新同步 Postgres ClickPipe 中的特定表

在某些情况下，重新同步某个管道中的特定表会很有用。例如，Postgres 发生了较大的 schema 变更，或者 ClickHouse 中进行了某些数据重建模。

虽然通过点击按钮重新同步单个表的功能仍在开发中，但本指南将介绍目前如何在 Postgres ClickPipe 中实现这一操作。

<Steps>
  <Step title="从管道中移除该表" id="removing-table">
    你可以按照[表移除指南](/docs/zh/integrations/clickpipes/postgres/remove-table)完成此步骤。
  </Step>

  <Step title="在 ClickHouse 中截断或删除该表" id="truncate-drop-table">
    此步骤是为了避免在下一步再次添加该表时出现数据重复。你可以前往 ClickHouse Cloud 的 **SQL 控制台** 选项卡并运行查询来完成此操作。
    请注意，如果该表已存在于 ClickHouse 中且不为空，我们的校验机制会阻止你添加该表。

    或者，如果你需要保留旧表，也可以直接重命名它。当表非常大且删除操作可能需要一些时间时，这种做法也很有帮助。

    ```sql theme={null}
    RENAME TABLE table_A TO table_A_bak;
    ```
  </Step>

  <Step title="再次将该表添加到 ClickPipe" id="add-table-again">
    你可以按照[表添加指南](/docs/zh/integrations/clickpipes/postgres/add-table)完成此步骤。
  </Step>
</Steps>
