好的,我意识到只需在 app.yml 的自定义命令部分添加以下行即可轻松实现:
app.yml
- exec: truncate -s0 /usr/share/postgresql/10/tsearch_data/spanish.stop