`SELECT to_jsonb(x)` 缺表别名,真实跑出 SQLSTATE 42703,基线抓取在启动第一个 新 PID 之前就中止。补 AS x,其余不变。
This commit is contained in:
@@ -169,7 +169,7 @@ FROM library_jobs WHERE id=$1`, job.ID).Scan(&expired); err != nil {
|
||||
snap.MarkerCreates = proxy.markerCreates()
|
||||
snap.WireForwarded = wireForwarded()
|
||||
var row string
|
||||
if err := gov.QueryRow(ctx, `SELECT to_jsonb(x)::text FROM library_index_restore_dispatch
|
||||
if err := gov.QueryRow(ctx, `SELECT to_jsonb(x)::text FROM library_index_restore_dispatch AS x
|
||||
WHERE index_name=$1 AND document_id='chunk-target'`, fx.index).Scan(&row); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user