I'm trying to run
REFRESH MATERIALIZED view CONCURRENTLY my_view in Postgresql, and I'm getting the following error:
SQL Error [XX000]: ERROR: unexpected attlen: -2 Where: SQL statement "SELECT newdata FROM pg_temp_25.pg_temp_2489701 newdata WHERE newdata IS NOT NULL AND EXISTS (SELECT 1 FROM pg_temp_25.pg_temp_2489701 newdata2 WHERE newdata2 IS NOT NULL AND newdata2 OPERATOR(pg_catalog.*=) newdata AND newdata2.ctid OPERATOR(pg_catalog.<>) newdata.ctid)"
I've made sure a unique index exists, and I've tried running the refresh without concurrency first, which works fine.
I'm running PostgreSQL 9.6 under CloudSQL from Google Cloud.
Can anyone provide any insight?