From: Steve Singer Date: Wed, 14 Aug 2013 14:46:45 +0000 (-0400) Subject: deconstruct_array wants the OID of the element type, not the array type X-Git-Tag: REL_2_2_0~16^2 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=refs%2Fheads%2Fbug304;p=slony1-engine.git deconstruct_array wants the OID of the element type, not the array type --- diff --git a/src/backend/slony1_funcs.c b/src/backend/slony1_funcs.c index 0051ea34..91792b67 100644 --- a/src/backend/slony1_funcs.c +++ b/src/backend/slony1_funcs.c @@ -1046,7 +1046,7 @@ versionFunc(logApply)(PG_FUNCTION_ARGS) array_holder = DirectFunctionCall2(text_to_array,cmdargs[2], delim_text); deconstruct_array(DatumGetArrayTypeP(array_holder), - TEXTARRAYOID, -1, false, 'i', + TEXTOID, -1, false, 'i', &seqargs, &seqargsnulls, &seqargsn); } }