psql:data.sql:2181309: ERROR: function activity_visibility(character varying, character varying[], jsonb) does not exist
LINE 1: visibility_new := activity_visibility(NEW.actor, NEW.recipie...
^
HINT: No function matches the given name and argument types. You might need to add explicit type casts.
QUERY: visibility_new := activity_visibility(NEW.actor, NEW.recipients, NEW.data)
CONTEXT: PL/pgSQL function public.update_status_visibility_counter_cache() line 15 at assignment
COPY activities, line 1: "00000185-47a3-fb00-d73b-6f576a0e0000 {"cc": ["https://artisan.chat/users/Curator", "https://chaos.so..."
COPY 0
COPY 81922
COPY 0
COPY 589
COPY 0
psql:data.sql:2263869: ERROR: insert or update on table "bookmarks" violates foreign key constraint "bookmarks_activity_id_fkey"
DETAIL: Key (activity_id)=(00000185-e7ca-4951-847f-1d724ce70000) is not present in table "activities".
Looks like the activity index bottleneck is still there. Wasted an hour, so let's interrupt this, recreate the cluster with pgtune settings and dump schema and data separately.
Takes quite a while, but at least I can see it's doing COPY and not CREATE INDEX. Feeling rather sleepy right now, might have to finish the job tomorrow.