Commit 01954e5
fix: task_insert() uses INSERT ... AS alias unsupported before 9.5
INSERT INTO tablename AS alias was added in PostgreSQL 9.5 alongside
ON CONFLICT; on 9.4 it's a plain syntax error, so every repeat-chain
insert failed there ("syntax error at or near AS"), crashing the
owning pg_work worker and looping it through the 60s bgw_restart_time
throttle - confirmed via debug log from CI run 30324794582's
REL9_4_STABLE-test job. The "AS t" alias on the INSERT target was
never needed (only RETURNING t.id used it); drop it and return
RETURNING id instead, which is valid on every supported version.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent df14841 commit 01954e5
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
0 commit comments